mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04: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
2 changed files with 14 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue