Merge branch 'zend_update_static_property' of https://github.com/dreamsxin/php-src

This commit is contained in:
Xinchen Hui 2015-07-13 16:02:21 +08:00
commit eef41c57a3

View File

@ -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 {