summaryrefslogtreecommitdiffstats
path: root/40.patch
blob: 678ad3ed0055e8f5b0446b40f9c79f8a017c9676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
 }
 /* }}} */