]> granicus.if.org Git - php/commitdiff
- Fixed bug #46604 (ReflectionClass::getProperty() fails) [only in this branch]
authorFelipe Pena <felipe@php.net>
Fri, 21 Nov 2008 23:32:50 +0000 (23:32 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 21 Nov 2008 23:32:50 +0000 (23:32 +0000)
ext/reflection/php_reflection.c

index a0ebb1ec0edb5453c4bf1062cec14069f161b746..00810f554b42391769733b998715dfa196df4986 100644 (file)
@@ -3488,8 +3488,8 @@ ZEND_METHOD(reflection_class, getProperty)
        if (zend_u_hash_find(&ce->properties_info, name_type, name, name_len + 1, (void**) &property_info) == SUCCESS) {
                if ((property_info->flags & ZEND_ACC_SHADOW) == 0) {
                        reflection_property_factory(ce, property_info, return_value TSRMLS_CC);
+                       return;
                }
-               return;
        } else if (intern->obj) {
                /* Check for dynamic properties */
                if (zend_u_hash_exists(Z_OBJ_HT_P(intern->obj)->get_properties(intern->obj TSRMLS_CC), name_type, name, name_len+1)) {