From: Dmitry Stogov Date: Fri, 10 Jun 2005 10:22:50 +0000 (+0000) Subject: Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor X-Git-Tag: php-5.0.5RC1~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef4e1a153eb2de25494ece157e391d5c4f707b1a;p=php Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index b010a6ed28..0dc6a471bf 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -2911,7 +2911,7 @@ ZEND_METHOD(reflection_property, __construct) /* returns out of this function */ } - if (zend_hash_find(&ce->properties_info, name_str, name_len + 1, (void **) &property_info) == FAILURE || (property_info->flags | ZEND_ACC_SHADOW)) { + if (zend_hash_find(&ce->properties_info, name_str, name_len + 1, (void **) &property_info) == FAILURE || (property_info->flags & ZEND_ACC_SHADOW)) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Property %s::$%s does not exist", ce->name, name_str); return; diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index b010a6ed28..0dc6a471bf 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2911,7 +2911,7 @@ ZEND_METHOD(reflection_property, __construct) /* returns out of this function */ } - if (zend_hash_find(&ce->properties_info, name_str, name_len + 1, (void **) &property_info) == FAILURE || (property_info->flags | ZEND_ACC_SHADOW)) { + if (zend_hash_find(&ce->properties_info, name_str, name_len + 1, (void **) &property_info) == FAILURE || (property_info->flags & ZEND_ACC_SHADOW)) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Property %s::$%s does not exist", ce->name, name_str); return;