diff options
author | Zeev Suraski <zeev@php.net> | 1999-12-01 22:00:58 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-12-01 22:00:58 +0000 |
commit | 2ddc4fe4f54ac9ab15c3cf5cf75c0ab684666c91 (patch) | |
tree | e1469bd6f3d3b87347e3974d19fee0dce48409f7 | |
parent | 158088ca1a5e0e7e6f9c1850d328915bfb94d5bd (diff) | |
download | php-git-2ddc4fe4f54ac9ab15c3cf5cf75c0ab684666c91.tar.gz |
Make it possible to explicitly set refcount in ZEND_SET_SYMBOL_WITH_LENGTH(), part 2
-rw-r--r-- | Zend/zend_API.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index b54942df0a..4434e2cb87 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -256,6 +256,9 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length, (var)->refcount = (*orig_var)->refcount; \ (var)->is_ref = 1; \ \ + if (_refcount) { \ + (var)->refcount += _refcount-1; \ + } \ zval_dtor(*orig_var); \ **orig_var = *(var); \ efree(var); \ |