summaryrefslogtreecommitdiffstats
path: root/40.patch
diff options
context:
space:
mode:
Diffstat (limited to '40.patch')
-rw-r--r--40.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/40.patch b/40.patch
new file mode 100644
index 0000000..678ad3e
--- /dev/null
+++ b/40.patch
@@ -0,0 +1,24 @@
+From 315cf20acea252da86b1e3524dd2a018cb6e5dae Mon Sep 17 00:00:00 2001
+From: Jan Ehrhardt <github@ehrhardt.nl>
+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);
+ }
+ /* }}} */