From 3e31838d19750d287431d22e9290856ec962fd6a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 22 Jan 2015 11:50:42 +0300 Subject: 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. --- Zend/zend_API.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_API.h') 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); -- cgit v1.2.1