#30062 [Opn->Csd]: Changes to get_class_*

From: Date: Sat, 11 Sep 2004 00:15:43 +0000
Subject: #30062 [Opn->Csd]: Changes to get_class_*
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66047@lists.php.net to get a copy of this message
ID: 30062 Updated by: helly@php.net Reported By: davey@php.net -Status: Open +Status: Closed Bug Type: Feature/Change Request -Operating System: Irrelevant +Operating System: * -PHP Version: 5CVS-2004-09-11 (dev) +PHP Version: 5* New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Use Reflection API. Previous Comments: ------------------------------------------------------------------------ [2004-09-11 01:27:41] davey@php.net Description: ------------ I was just thinking it might be nice to add an additional argument to the get_class_* functions which takes a bit mask of the T_PRIVATE, T_STATIC etc token constants to define what information you want returned (i.e. only return static public methods) - Davey Reproduce code: --------------- <?php class foo { private function bar() { } public function baz() { } static public function bat { } protected function qux { } } var_dump(get_class_methods('foo', T_STATIC & T_PUBLIC)); Expected result: ---------------- array { [1] => 'bat' } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30062&edit=1

« previous php.bugs (#66047) next »