com php-src: fix memory error in std_write_property: Ze nd/zend_object_handlers.c

From: Date: Wed, 06 Apr 2016 07:48:16 +0000
Subject: com php-src: fix memory error in std_write_property: Ze nd/zend_object_handlers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95578@lists.php.net to get a copy of this message
Commit: 26e1afbcddbc2a6fa6c68db7581799e96e9fc705 Author: Joe Watkins <krakjoe@php.net> Wed, 6 Apr 2016 08:48:16 +0100 Parents: 7edbbaed974f896d355ffc461c12b70251392a45 Branches: typed_ref_properties Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=26e1afbcddbc2a6fa6c68db7581799e96e9fc705 Log: fix memory error in std_write_property Changed paths: M Zend/zend_object_handlers.c Diff: diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index d73f676..bb4ee98 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -671,7 +671,7 @@ ZEND_API void zend_std_write_property(zval *object, zval *member, zval *value, v } if ((variable_ptr = zend_hash_find(zobj->properties, Z_STR_P(member))) != NULL) { found: - if (ZEND_OBJECT_HAS_TYPE_HINTS(object)) { + if (ZEND_CLASS_HAS_TYPE_HINTS(zobj->ce)) { zend_property_info *prop_info = zend_object_fetch_property_type_info(object, member, cache_slot); if (prop_info) {

« previous php.cvs (#95578) next »