From 6ac68389610041ce4b20841e72d9fdd0e4079f36 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 21 Nov 2008 23:32:50 +0000 Subject: [PATCH] - Fixed bug #46604 (ReflectionClass::getProperty() fails) [only in this branch] --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.50.1