summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2005-05-04 15:25:42 +0000
committerStanislav Malyshev <stas@php.net>2005-05-04 15:25:42 +0000
commit24150c7b1df631b04dd71d0d09c343f4606c5f9e (patch)
tree30f7a41d3083c9d0f9efee9537d47a79b1bb09b9
parent3ccba5514ffd7fd6405e065663af6635de61ff72 (diff)
downloadphp-git-24150c7b1df631b04dd71d0d09c343f4606c5f9e.tar.gz
clarify some magic
-rw-r--r--Zend/zend_execute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index a09d8a9094..86413efc13 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -1295,6 +1295,8 @@ static void zend_post_incdec_property(znode *result, znode *op1, znode *op2, tem
z->refcount++;
Z_OBJ_HT_P(object)->write_property(object, property, z_copy TSRMLS_CC);
zval_ptr_dtor(&z_copy);
+ /* this would destroy z if it was returned with refcount == 0 and undo
+ recount++ above otherwise */
zval_ptr_dtor(&z);
}