summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-02-08 00:36:57 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-02-08 00:36:57 +0000
commit0a6b074034efa9ef2a82c4a3b704f5fbccaa3e59 (patch)
tree076a11a505208e552752e3b7767f4a92fa1834ab /ext/reflection/php_reflection.c
parent7deff63e3c533cc00da67ef43996c44476d2cb17 (diff)
downloadphp-git-0a6b074034efa9ef2a82c4a3b704f5fbccaa3e59.tar.gz
Fixed bug #36308 (ReflectionProperty::getDocComment() does not reflect
extended class commentary).
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 54d8e27658..411e0ece15 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1070,14 +1070,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;