#30062 [NEW]: Changes to get_class_*

From: Date: Fri, 10 Sep 2004 23:27:46 +0000
Subject: #30062 [NEW]: Changes to get_class_*
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66044@lists.php.net to get a copy of this message
From: davey@php.net Operating system: Irrelevant PHP version: 5CVS-2004-09-11 (dev) PHP Bug Type: Feature/Change Request Bug description: Changes to get_class_* 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 bug report at http://bugs.php.net/?id=30062&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30062&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30062&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30062&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30062&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30062&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30062&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30062&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30062&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30062&r=support Expected behavior: http://bugs.php.net/fix.php?id=30062&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30062&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30062&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30062&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30062&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30062&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30062&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30062&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30062&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30062&r=mysqlcfg

« previous php.bugs (#66044) next »