mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed refcounting
This commit is contained in:
parent
9c317c57bc
commit
78fc6b3570
@ -623,7 +623,7 @@ ZEND_API int zval_update_constant_ex(zval *p, void *arg, zend_class_entry *scope
|
||||
}
|
||||
}
|
||||
|
||||
if (Z_REFCOUNT_P(element) > 1) {
|
||||
if (Z_REFCOUNTED_P(element) && Z_REFCOUNT_P(element) > 1) {
|
||||
ZVAL_DUP(&new_val, element);
|
||||
|
||||
/* preserve this bit for inheritance */
|
||||
|
Loading…
Reference in New Issue
Block a user