diff options
author | Zeev Suraski <zeev@php.net> | 1999-08-17 22:31:45 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-08-17 22:31:45 +0000 |
commit | 50bfff55028749f7024ef12c3a1cbf950e9ed65a (patch) | |
tree | 4aaabe7ac5fabb8195e58612e99fde58fbc34dcc /Zend/zend_execute_API.c | |
parent | cd2006f8b7c1ea3733ecd748f307ca1afcf885c0 (diff) | |
download | php-git-50bfff55028749f7024ef12c3a1cbf950e9ed65a.tar.gz |
Fix #2012
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index c71085fe6d..058c8c338b 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -274,6 +274,7 @@ ZEND_API void zval_update_constant(zval *p) { if (p->type == IS_CONSTANT) { zval c; + int refcount = p->refcount; if (!zend_get_constant(p->value.str.val, p->value.str.len, &c)) { zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", @@ -285,6 +286,7 @@ ZEND_API void zval_update_constant(zval *p) *p = c; } INIT_PZVAL(p); + p->refcount = refcount; } } |