]> granicus.if.org Git - php/commitdiff
Fixed asseration fail
authorXinchen Hui <laruence@gmail.com>
Tue, 25 Feb 2014 10:22:54 +0000 (18:22 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 25 Feb 2014 10:22:54 +0000 (18:22 +0800)
Zend/zend_object_handlers.c

index 5f68520644db7cb698a9512f973bf73f7dba39a7..74cc0fad0cd50f061245150fb9008d7457992803 100644 (file)
@@ -565,7 +565,7 @@ found:
 
                                                /* To check: can't *variable_ptr be some system variable like error_zval here? */
                                                ZVAL_COPY_VALUE(Z_REFVAL_P(variable_ptr), value);
-                                               if (Z_REFCOUNT_P(value) > 0) {
+                                               if (Z_REFCOUNTED_P(value) && Z_REFCOUNT_P(value) > 0) {
                                                        zval_copy_ctor(Z_REFVAL_P(variable_ptr));
                                                }
                                                zval_dtor(&garbage);