Bug #64592 [Opn->Csd]: ReflectionClass::getMethods() returns methods out of scope
| From: | nikic@php.net | Date: | Fri, 28 Feb 2020 14:54:58 +0000 |
| Subject: | Bug #64592 [Opn->Csd]: ReflectionClass::getMethods() returns methods out of scope | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225788@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64592&edit=1
ID: 64592
Updated by: nikic@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: ReflectionClass::getMethods() returns methods out of
scope
-Status: Open
+Status: Closed
Type: Bug
Package: Reflection related
Operating System: Linux
PHP Version: 5.4.13
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=87bc99439d5cdd3465ae37f1207067fc40ab7b19
Log: Fixed bug #64592
Previous Comments:
------------------------------------------------------------------------
[2016-06-29 15:17:48] benjamin dot morel at gmail dot com
7.0 would have been a perfect time for this. Too bad nobody took this bug seriously at the time.
------------------------------------------------------------------------
[2016-06-29 15:13:05] cmb@php.net
I think that suppressing inherited private properties, but showing
inherited private methods is very inconsistent behavior. However,
changing one or the other would likely require the RFC process,
see <https://wiki.php.net/rfc/howto>.
------------------------------------------------------------------------
[2013-04-08 08:54:01] benjamin dot morel at gmail dot com
@johannes too bad this comes up just a few days after the feature freeze for 5.5 :(
No chance this could be considered a bug, not a feature, and make it into 5.5?
I personally don't think it would be a huge problem, as most existing libraries
probably haven't started to modify their code for 5.5 compatibility, so it could
still be time to fix it?
------------------------------------------------------------------------
[2013-04-08 08:04:23] johannes@php.net
In general reflection in PHP leaks the "truth" by not hiding implementation details. This
falls into this category. Telling the truth is nice for maintainers but not really for users.
We can't change it in released (or feature frozen) versions so 5.6 might be an option. For that
we might collect more such cases and think about ringing Reflection on some higher level of
abstraction.
------------------------------------------------------------------------
[2013-04-07 12:53:40] felipe@php.net
Hey Johannes, what do you think about this behavior? Since reflection has worked in this way for a
long time...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64592
--
Edit this bug report at https://bugs.php.net/bug.php?id=64592&edit=1