From: Felipe Pena Date: Fri, 21 Nov 2008 23:32:50 +0000 (+0000) Subject: - Fixed bug #46604 (ReflectionClass::getProperty() fails) [only in this branch] X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ac68389610041ce4b20841e72d9fdd0e4079f36;p=php - Fixed bug #46604 (ReflectionClass::getProperty() fails) [only in this branch] --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index a0ebb1ec0e..00810f554b 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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)) {