]> granicus.if.org Git - php/commitdiff
Updated zend_update_static_property
authorDreamsxin <dreamsxin@126.com>
Mon, 13 Jul 2015 00:42:18 +0000 (08:42 +0800)
committerDreamsxin <dreamsxin@126.com>
Mon, 13 Jul 2015 00:42:18 +0000 (08:42 +0800)
Zend/zend_API.c

index c84ab13792d38424db7abe8d431fb2970e7339c0..d8e560c844a927481c3477c9cb67896c6c8c0962 100644 (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 {