blob: 057cbf33f81a0ef5f7e86825b9d4c44fbbe48ef8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/tarantool.c.orig 2018-04-18 13:33:56 UTC
+++ src/tarantool.c
@@ -1151,7 +1151,11 @@ PHP_METHOD(Tarantool, __construct) {
memset(&le, 0, sizeof(zend_resource));
le.type = php_tarantool_list_entry();
le.ptr = obj;
+#if PHP_VERSION_ID >= 70300
+ GC_SET_REFCOUNT(&le, 1);
+#else
GC_REFCOUNT(&le) = 1;
+#endif
assert(plist_id != NULL);
if (zend_hash_update_mem(&EG(persistent_list), plist_id,
|