From 88ab32800999bd38605fc53ba9cf829b178c8e16 Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 17 Apr 2018 23:22:07 +0800 Subject: [PATCH] Bug fix --- src/collections_methods.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/collections_methods.c b/src/collections_methods.c index 34d169e..f32f7e5 100644 --- a/src/collections_methods.c +++ b/src/collections_methods.c @@ -87,19 +87,12 @@ ARRAY_NEW_EX(dest, src); \ zend_hash_copy(dest, src, NULL) -// Compatible with PHP 7.2 -#if PHP_VERSION_ID >= 70200 -#define ALLOW_COW_VIOLATION(ht) HT_ALLOW_COW_VIOLATION(ht) -#else -#define ALLOW_COW_VIOLATION(ht) -#endif - #define RETVAL_NEW_COLLECTION(collection) \ do { \ NEW_COLLECTION_OBJ(obj); \ zend_array* new_arr = collection; \ if (GC_REFCOUNT(new_arr) > 1) \ - new_arr = zend_array_dup(new_arr) \ + new_arr = zend_array_dup(new_arr); \ object_properties_init_ex(obj, new_arr); \ RETVAL_OBJ(obj); \ } while (0)