com php-src: use api for stuff ... doh: Zend/zend_execute.c
| From: | Bob Weinand | Date: | Mon, 21 Mar 2016 20:25:41 +0000 |
| Subject: | com php-src: use api for stuff ... doh: Zend/zend_execute.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95657@lists.php.net to get a copy of this message | ||
Commit: 3a057cbe9a32416a0bd84da50bfbe0e9b3020997
Author: Joe Watkins <krakjoe@php.net> Mon, 21 Mar 2016 20:25:41 +0000
Parents: b1543e5aae335ec7ef151970d6ad458416b5d06c
Branches: typed_ref_properties
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3a057cbe9a32416a0bd84da50bfbe0e9b3020997
Log:
use api for stuff ... doh
Changed paths:
M Zend/zend_execute.c
Diff:
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index f6b8ff9..3289e6b 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -782,10 +782,9 @@ zend_property_info* zend_object_fetch_property_type_info(zval *object, zval
*pro
}
if (EXPECTED(Z_TYPE_P(property) == IS_STRING)) {
- zend_property_info *info = zend_hash_find_ptr(
- &Z_OBJCE_P(object)->properties_info, Z_STR_P(property));
+ zend_property_info *info = zend_get_property_info(Z_OBJCE_P(object), Z_STR_P(property), 1);
- if (UNEXPECTED(info && info->type)) {
+ if (UNEXPECTED(info && info != ZEND_WRONG_PROPERTY_INFO && info->type)) {
return info;
}
}