diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-04-05 20:09:14 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-04-05 20:09:14 +0300 |
commit | a186ac0e47023f5b16daf25bd37750138d78ab94 (patch) | |
tree | 2d31d9651e52e460e58bb846abd7fd9b65b12059 /Zend/zend_constants.c | |
parent | a5e21665ee001e54d827e703ec6f0a3c7053be85 (diff) | |
download | php-git-a186ac0e47023f5b16daf25bd37750138d78ab94.tar.gz |
IS_CONST operands don't have to be separated. Use reference-counting instead of duplication.
- with opcache all IS_CONST operands are not refcounted (scalars, interned strings or immutable arrays)
- without opcache IS_CONST operands are not shared between processes or threads and may use common reference counters
Diffstat (limited to 'Zend/zend_constants.c')
-rw-r--r-- | Zend/zend_constants.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c index e366bae193..0249d35626 100644 --- a/Zend/zend_constants.c +++ b/Zend/zend_constants.c @@ -33,7 +33,7 @@ void free_zend_constant(zval *zv) zend_constant *c = Z_PTR_P(zv); if (!(c->flags & CONST_PERSISTENT)) { - zval_dtor(&c->value); + zval_ptr_dtor(&c->value); } else { zval_internal_dtor(&c->value); } |