summaryrefslogtreecommitdiffstats
path: root/463.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-10-08 14:01:28 +0200
committerRemi Collet <remi@remirepo.net>2020-10-08 14:01:28 +0200
commitf9a74f77ea1bdce93dfe19fae9edd141bfe23b9b (patch)
tree0149f7f721743fa3ba2350b698ab39383e3d3870 /463.patch
parentb74826b326fdf9ad4a4ccdc85256f80c86dc405b (diff)
more fix for 8
Diffstat (limited to '463.patch')
-rw-r--r--463.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/463.patch b/463.patch
index 756880e..37bb169 100644
--- a/463.patch
+++ b/463.patch
@@ -1649,3 +1649,65 @@ index 0000000..c8af231
+OK
+From baa6bfda6fbf4c1c75b5a7492db4cc40e6aa81f3 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 8 Oct 2020 13:45:49 +0200
+Subject: [PATCH] cleanup HAVE_SPL, removed in 8 as always there
+
+---
+ php_memcached.c | 13 ++++---------
+ 1 file changed, 4 insertions(+), 9 deletions(-)
+
+diff --git a/php_memcached.c b/php_memcached.c
+index 147cb4a..8d9040e 100644
+--- a/php_memcached.c
++++ b/php_memcached.c
+@@ -55,6 +55,8 @@
+ # include "ext/msgpack/php_msgpack.h"
+ #endif
+
++# include "ext/spl/spl_exceptions.h"
++
+ static int le_memc;
+
+ static int php_memc_list_entry(void) {
+@@ -251,10 +253,6 @@ static zend_class_entry *memcached_ce = NULL;
+ static zend_class_entry *memcached_exception_ce = NULL;
+ static zend_object_handlers memcached_object_handlers;
+
+-#ifdef HAVE_SPL
+-static zend_class_entry *spl_ce_RuntimeException = NULL;
+-#endif
+-
+ ZEND_DECLARE_MODULE_GLOBALS(php_memcached)
+
+ #ifdef COMPILE_DL_MEMCACHED
+@@ -3764,7 +3762,6 @@ zend_class_entry *php_memc_get_exception(void)
+ PHP_MEMCACHED_API
+ zend_class_entry *php_memc_get_exception_base(int root)
+ {
+-#ifdef HAVE_SPL
+ if (!root) {
+ if (!spl_ce_RuntimeException) {
+ zend_class_entry *pce;
+@@ -3781,7 +3778,7 @@ zend_class_entry *php_memc_get_exception_base(int root)
+ return spl_ce_RuntimeException;
+ }
+ }
+-#endif
++
+ return zend_exception_get_default();
+ }
+
+@@ -3877,10 +3874,8 @@ static const zend_module_dep memcached_deps[] = {
+ #ifdef HAVE_MEMCACHED_MSGPACK
+ ZEND_MOD_REQUIRED("msgpack")
+ #endif
+-#ifdef HAVE_SPL
+ ZEND_MOD_REQUIRED("spl")
+-#endif
+- {NULL, NULL, NULL}
++ ZEND_MOD_END
+ };
+ #endif
+