com php-src: fix another possible memory error: Zend/zend_obj ect_handlers.c
| From: | Bob Weinand | Date: | Wed, 06 Apr 2016 07:50:01 +0000 |
| Subject: | com php-src: fix another possible memory error: Zend/zend_obj ect_handlers.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95574@lists.php.net to get a copy of this message | ||
Commit: a2d6d5b6f0a4e05866d3777af5668ad386413b68
Author: Joe Watkins <krakjoe@php.net> Wed, 6 Apr 2016 08:50:01 +0100
Parents: 26e1afbcddbc2a6fa6c68db7581799e96e9fc705
Branches: typed_ref_properties
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a2d6d5b6f0a4e05866d3777af5668ad386413b68
Log:
fix another possible memory error
Changed paths:
M Zend/zend_object_handlers.c
Diff:
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index bb4ee98..1cb6ffc 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -730,7 +730,7 @@ write_std_property:
}
}
- 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) {