1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor

This commit is contained in:
Dmitry Stogov
2005-06-10 10:22:50 +00:00
parent 7577029efd
commit ef4e1a153e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;