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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user