diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2009-05-21 16:01:37 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2009-05-21 16:01:37 +0000 |
commit | 5c5dcf5e7ae716570a03d45a2df18abb7de229e3 (patch) | |
tree | 9a35503d773bba7bcdd9c142e1b9ad1b6927ec3d /ext/reflection/php_reflection.c | |
parent | 9aca3c04a074ed79308c823b5eacae0e8ba1dc53 (diff) | |
download | php-git-5c5dcf5e7ae716570a03d45a2df18abb7de229e3.tar.gz |
MFH: Fixed bug #48336 (ReflectionProperty::getDeclaringClass() does not
work with redeclared property)
(patch by Markus dot Lidel at shadowconnect dot com)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 5e14ec4fbe..93fb1701fb 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4603,6 +4603,10 @@ ZEND_METHOD(reflection_property, getDeclaringClass) break; } ce = tmp_ce; + if (tmp_ce == tmp_info->ce) { + /* declared in this class, done */ + break; + } tmp_ce = tmp_ce->parent; } |