From 315cf20acea252da86b1e3524dd2a018cb6e5dae Mon Sep 17 00:00:00 2001 From: Jan Ehrhardt Date: Tue, 12 Mar 2019 09:06:52 +0100 Subject: [PATCH] readd this for php < 7.2 Remaining part of https://github.com/websupport-sk/pecl-memcache/pull/30 --- php7/memcache_pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php7/memcache_pool.c b/php7/memcache_pool.c index 5bea3e1..ffeb744 100644 --- a/php7/memcache_pool.c +++ b/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); } /* }}} */