1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00

Fixed possible crash on $x = $obj->$non_string

This commit is contained in:
Dmitry Stogov
2005-06-20 18:25:12 +00:00
parent 4e0748c5cf
commit 68d3a2a4a3

View File

@@ -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;
}