summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-10-06 18:03:19 +0000
committerAntony Dovgal <tony2001@php.net>2006-10-06 18:03:19 +0000
commit3a4603b4b0fd87baa079d52da50f022327a07b32 (patch)
treeb4d3af5bbbbf28aec7d53324c6b19bcc7980b9e7 /ext/reflection/php_reflection.c
parentd917bf084c9db42123a5e43436c9370f19d6c69c (diff)
downloadphp-git-3a4603b4b0fd87baa079d52da50f022327a07b32.tar.gz
more improvements
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 280f635188..55189cda80 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -4027,12 +4027,12 @@ 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) {
- ce = tmp_ce;
- tmp_ce = tmp_ce->parent;
if (tmp_info->flags & ZEND_ACC_PRIVATE) {
/* it's a private property, so it can't be inherited */
break;
}
+ ce = tmp_ce;
+ tmp_ce = tmp_ce->parent;
}
zend_reflection_class_factory(ce, return_value TSRMLS_CC);