]> granicus.if.org Git - php/commitdiff
fix decrement_function regarding bug #70863
authorAnatol Belski <ab@php.net>
Fri, 6 Nov 2015 22:05:35 +0000 (23:05 +0100)
committerAnatol Belski <ab@php.net>
Fri, 6 Nov 2015 22:07:21 +0000 (23:07 +0100)
Zend/zend_operators.c

index bad2aa648f2879d86f5299e958ed334583455be3..3f4f29020eeda27e5f16e31b565829ea9cff4c61 100644 (file)
@@ -2345,7 +2345,7 @@ try_again:
                                zval *val;
 
                                val = Z_OBJ_HANDLER_P(op1, get)(op1, &rv);
-                               Z_ADDREF_P(val);
+                               Z_TRY_ADDREF_P(val);
                                decrement_function(val);
                                Z_OBJ_HANDLER_P(op1, set)(op1, val);
                                zval_ptr_dtor(val);