summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-02-27 15:40:13 +0400
committerDmitry Stogov <dmitry@zend.com>2014-02-27 15:40:13 +0400
commit1c3ba95bb547f8d9b0bd0496238a76ef6a706b07 (patch)
tree3a2aade60600648e0fac93d36b70dd78adb32970 /Zend/zend_API.c
parentee3254a2e8ed84e80599e4757d3c3662c1e87e02 (diff)
downloadphp-git-1c3ba95bb547f8d9b0bd0496238a76ef6a706b07.tar.gz
Refactored read_property() and read_dimension() handlers
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 417ae1032e..32f60dc232 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -3858,6 +3858,7 @@ ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const c
{
zval property, *value;
zend_class_entry *old_scope = EG(scope);
+ zval rv;
EG(scope) = scope;
@@ -3867,7 +3868,7 @@ ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const c
}
ZVAL_STRINGL(&property, name, name_length);
- value = Z_OBJ_HT_P(object)->read_property(object, &property, silent?BP_VAR_IS:BP_VAR_R, 0 TSRMLS_CC);
+ value = Z_OBJ_HT_P(object)->read_property(object, &property, silent?BP_VAR_IS:BP_VAR_R, 0, &rv TSRMLS_CC);
zval_ptr_dtor(&property);
EG(scope) = old_scope;