summaryrefslogtreecommitdiffstats
path: root/33.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-07-21 08:40:13 +0200
committerRemi Collet <remi@remirepo.net>2021-07-21 08:40:13 +0200
commit50c6cc5a017030f830d936717acbaac6fc213e8a (patch)
treeb0100dcf724f927befea4044bd35acdfe6c136e9 /33.patch
parent03802968f1a647a72dc78ab73a1641f8b2a3d204 (diff)
add patch for PHP 8.1.0beta1 from
https://github.com/couchbase/php-couchbase/pull/33
Diffstat (limited to '33.patch')
-rw-r--r--33.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/33.patch b/33.patch
new file mode 100644
index 0000000..45a7ed4
--- /dev/null
+++ b/33.patch
@@ -0,0 +1,32 @@
+From 151df28b1b6d545ad71846f11a3a3af65bb1f3be Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 21 Jul 2021 08:32:57 +0200
+Subject: [PATCH] fix for 8.1.0beta1
+
+---
+ couchbase.h | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/couchbase.h b/couchbase.h
+index bc93c10..9748205 100644
+--- a/couchbase.h
++++ b/couchbase.h
+@@ -243,11 +243,18 @@ void pcbc_exception_init(zval *return_value, long code, const char *message);
+ #define PCBC_ALLOC_OBJECT_T(obj_t, class_type) \
+ (obj_t *)ecalloc(1, sizeof(obj_t) + zend_object_properties_size(class_type))
+
++#if PHP_VERSION_ID < 80100
+ #define PCBC_CE_DISABLE_SERIALIZATION(ce) \
+ do { \
+ ce->serialize = zend_class_serialize_deny; \
+ ce->unserialize = zend_class_unserialize_deny; \
+ } while (0);
++#else
++#define PCBC_CE_DISABLE_SERIALIZATION(ce) \
++ do { \
++ ce->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE; \
++ } while (0);
++#endif
+
+ #define PCBC_STRLEN_P(__pcbc_zval) Z_STRLEN((__pcbc_zval))
+ #define PCBC_STRVAL_P(__pcbc_zval) Z_STRVAL((__pcbc_zval))