summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-01-22 11:50:42 +0300
committerDmitry Stogov <dmitry@zend.com>2015-01-22 11:50:42 +0300
commit3e31838d19750d287431d22e9290856ec962fd6a (patch)
tree47f531e9bc442106f5eee978104fa14f1a5d19d2 /Zend/zend_API.h
parent201f660ae11488eeacd16ee7adbe79fc8a28e27d (diff)
downloadphp-git-3e31838d19750d287431d22e9290856ec962fd6a.tar.gz
zend_read_property() has to provide a holder for return value.
Previously it was possible that zend_read_property() returned pointer to zval allocated on stack.
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 724ea9e99b..e3be8d7138 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -335,7 +335,7 @@ ZEND_API int zend_update_static_property_double(zend_class_entry *scope, const c
ZEND_API int zend_update_static_property_string(zend_class_entry *scope, const char *name, size_t name_length, const char *value);
ZEND_API int zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t name_length, const char *value, size_t value_length);
-ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_bool silent);
+ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_bool silent, zval *rv);
ZEND_API zval *zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_length, zend_bool silent);