summaryrefslogtreecommitdiffstats
path: root/40.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-03-19 12:37:08 +0100
committerRemi Collet <remi@remirepo.net>2019-03-19 12:37:08 +0100
commit7a8f4193836a81b31c51eb69cc4eaa22a62c2836 (patch)
tree4755ce14a0ccb84dc7bbc3147b2dfd6f32b6f1cc /40.patch
parentcf4f67ce9bebd1d2c1377e31bfdfc6832c2bd5ea (diff)
update to 4.0.2 from https://github.com/websupport-sk/pecl-memcache
add patch for PHP < 7.2 from https://github.com/websupport-sk/pecl-memcache/pull/40 add patch to allow session.save_path from https://github.com/websupport-sk/pecl-memcache/pull/45
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);
+ }
+ /* }}} */