diff options
author | Nikita Popov <nikic@php.net> | 2016-04-29 14:04:23 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-04-29 14:06:39 +0200 |
commit | a1c405e0c50c627cdd9a7695b4c7d644238b6b9b (patch) | |
tree | d4dbc04750b2c5e382b202f2db64db28608ce534 /Zend/zend_execute_API.c | |
parent | 416e22d2bb496da39e95136b1eded64869f10dd0 (diff) | |
download | php-git-a1c405e0c50c627cdd9a7695b4c7d644238b6b9b.tar.gz |
Fix usages of zend_update_constant_ex
If an in-place update in an external zval is performed, it needs
to incref'd beforehand, not afterwards.
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 6bb833fd99..2acf29c2ce 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -646,12 +646,6 @@ ZEND_API int zval_update_constant_ex(zval *p, zend_class_entry *scope) /* {{{ */ zend_string_release(Z_STR_P(p)); } ZVAL_COPY_VALUE(p, const_value); - if (Z_OPT_CONSTANT_P(p)) { - if (UNEXPECTED(zval_update_constant_ex(p, scope) != SUCCESS)) { - RESET_CONSTANT_VISITED(p); - return FAILURE; - } - } zval_opt_copy_ctor(p); } } else if (Z_TYPE_P(p) == IS_CONSTANT_AST) { |