From 0e61422e6c110f784643f2a6c227691fb7a18ad7 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 8 Feb 2006 00:37:31 +0000 Subject: [PATCH] MFB51: Fixed bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary). --- ext/reflection/php_reflection.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 4e2ab3215c..d4e1de0a0c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1076,14 +1076,10 @@ static void reflection_property_factory(zend_class_entry *ce, zend_property_info if (!(prop->flags & ZEND_ACC_PRIVATE)) { /* we have to seach the class hierarchy for this (implicit) public or protected property */ - zend_class_entry *tmp_ce = ce->parent; + zend_class_entry *tmp_ce = ce; zend_property_info *tmp_info; - while (tmp_ce && zend_hash_find(&tmp_ce->properties_info, prop_name, strlen(prop_name) + 1, (void **) &tmp_info) == SUCCESS) { - if (tmp_info->flags & ZEND_ACC_PRIVATE) { - /* private in super class => NOT the same property */ - break; - } + while (tmp_ce && zend_hash_find(&tmp_ce->properties_info, prop_name, strlen(prop_name) + 1, (void **) &tmp_info) != SUCCESS) { ce = tmp_ce; prop = tmp_info; tmp_ce = tmp_ce->parent; -- 2.50.1