From: Dmitry Stogov Date: Wed, 31 Mar 2004 15:16:00 +0000 (+0000) Subject: Fixed BUG in zend_post_incdec_property X-Git-Tag: php-5.0.0RC2RC1~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d00b6c7c99c105157e33335de84e9bb444c077c4;p=php Fixed BUG in zend_post_incdec_property --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 5742c9bf9f..7a365194f9 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1263,8 +1263,8 @@ static void zend_post_incdec_property(znode *result, znode *op1, znode *op2, tem if (!have_get_ptr) { zval *z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_RW TSRMLS_CC); - if (z->type == IS_OBJECT && Z_OBJ_HT_P(object)->get) { - zval *value = Z_OBJ_HT_P(object)->get(z TSRMLS_CC); + if (z->type == IS_OBJECT && Z_OBJ_HT_P(z)->get) { + zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC); if (z->refcount == 0) { zval_dtor(z);