diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-01-03 19:57:21 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-01-03 19:57:21 +0000 |
commit | aeb7dcf1ffcd7751af447775fd3fa052b3be22d2 (patch) | |
tree | a13c00994712ec588afb35c1faa8f29a165b8ca1 /databases/php-tarantool/files/patch-src-tarantool.c | |
parent | Fix MTR_OPTIONS parsing (diff) |
Move databases/php7-tarantool to databases/php-tarantool
Rename php7-tarantool to php-tarantool after php5-tarantool removal
Notes
Notes:
svn path=/head/; revision=489207
Diffstat (limited to 'databases/php-tarantool/files/patch-src-tarantool.c')
-rw-r--r-- | databases/php-tarantool/files/patch-src-tarantool.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/php-tarantool/files/patch-src-tarantool.c b/databases/php-tarantool/files/patch-src-tarantool.c new file mode 100644 index 000000000000..057cbf33f81a --- /dev/null +++ b/databases/php-tarantool/files/patch-src-tarantool.c @@ -0,0 +1,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, |