mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Fix build with PHP 7.1
PR: 236234
Submitted by: Krzysztof <ports@bsdserwis.com>
Obtained from: 09e21a6341
This commit is contained in:
parent
f9d1189b04
commit
d11ff9d897
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495071
@ -22,7 +22,6 @@ USES= dos2unix php:ext
|
||||
USE_PHP= session:build zlib:build
|
||||
|
||||
CONFIGURE_ARGS= --with-zlib-dir=/usr
|
||||
IGNORE_WITH_PHP=71
|
||||
|
||||
GH_ACCOUNT= websupport-sk
|
||||
GH_PROJECT= pecl-${PORTNAME}
|
||||
|
14
databases/php-memcache/files/patch-php7-memcache_pool.c
Normal file
14
databases/php-memcache/files/patch-php7-memcache_pool.c
Normal file
@ -0,0 +1,14 @@
|
||||
Obtained from: https://github.com/websupport-sk/pecl-memcache/commit/09e21a63410cbfd8827c7a876d8160a6b80b076c
|
||||
|
||||
--- php7/memcache_pool.c.orig 2019-03-04 21:49:48 UTC
|
||||
+++ php7/memcache_pool.c
|
||||
@@ -44,6 +44,9 @@ ZEND_DECLARE_MODULE_GLOBALS(memcache)
|
||||
MMC_POOL_INLINE void mmc_buffer_alloc(mmc_buffer_t *buffer, unsigned int size) /*
|
||||
ensures space for an additional size bytes {{{ */
|
||||
{
|
||||
+#if PHP_VERSION_ID < 70200
|
||||
+ register size_t newlen;
|
||||
+#endif
|
||||
smart_string_alloc((&(buffer->value)), size, 0);
|
||||
}
|
||||
/* }}} */
|
Loading…
Reference in New Issue
Block a user