From: Dmitry Stogov Date: Mon, 20 Jun 2005 18:25:12 +0000 (+0000) Subject: Fixed possible crash on $x = $obj->$non_string X-Git-Tag: php-5.0.5RC1~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68d3a2a4a37b42b689328ea810fa5347ca8ed803;p=php Fixed possible crash on $x = $obj->$non_string --- diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 9d3f09bca6..493bd113d6 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -330,9 +330,9 @@ zval *zend_std_read_property(zval *object, zval *member, int type TSRMLS_DC) } } if (tmp_member) { - rv->refcount++; + (*retval)->refcount++; zval_ptr_dtor(&tmp_member); - rv->refcount--; + (*retval)->refcount--; } return *retval; }