]> granicus.if.org Git - php/commitdiff
Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor
authorDmitry Stogov <dmitry@php.net>
Fri, 10 Jun 2005 10:22:50 +0000 (10:22 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 10 Jun 2005 10:22:50 +0000 (10:22 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index b010a6ed2831862c8041f4dae4243a3cfef6e87e..0dc6a471bfcf9407be08641dcf3f8941123d665b 100644 (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;
index b010a6ed2831862c8041f4dae4243a3cfef6e87e..0dc6a471bfcf9407be08641dcf3f8941123d665b 100644 (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;