summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-06-01 03:08:59 +0000
committerFelipe Pena <felipe@php.net>2008-06-01 03:08:59 +0000
commitfba1e9d0c5c34b60b63b97e2605ce430186c17e1 (patch)
treeff6540254837ba882e6040447a2f96839fadcaf4 /ext/reflection/php_reflection.c
parentb3abcd8a34678e8f49ca8e1a278f076f25923400 (diff)
downloadphp-git-fba1e9d0c5c34b60b63b97e2605ce430186c17e1.tar.gz
- Fixed bug #45139 (ReflectionProperty returns incorrect declaring class)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 845ab3ec0d..f210261022 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -4081,7 +4081,7 @@ ZEND_METHOD(reflection_property, getDeclaringClass)
prop_name_len = strlen(prop_name);
ce = tmp_ce = ref->ce;
while (tmp_ce && zend_hash_find(&tmp_ce->properties_info, prop_name, prop_name_len + 1, (void **) &tmp_info) == SUCCESS) {
- if (tmp_info->flags & ZEND_ACC_PRIVATE) {
+ if (tmp_info->flags & ZEND_ACC_PRIVATE || tmp_info->flags & ZEND_ACC_SHADOW) {
/* it's a private property, so it can't be inherited */
break;
}