mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
Merge branch 'zend_update_static_property' of https://github.com/dreamsxin/php-src
This commit is contained in:
commit
eef41c57a3
@ -3923,7 +3923,7 @@ ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *na
|
||||
if (Z_ISREF_P(property)) {
|
||||
zval_dtor(property);
|
||||
ZVAL_COPY_VALUE(property, value);
|
||||
if (Z_REFCOUNT_P(value) > 0) {
|
||||
if (Z_REFCOUNTED_P(value) && Z_REFCOUNT_P(value) > 0) {
|
||||
zval_opt_copy_ctor(property);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user