From: epowell at visi dot com Operating system: Mac OS X 10.3.5 PHP version: 5.0.2 PHP Bug Type: Feature/Change Request Bug description: get_class_methods too greedy
Description: ------------ PHP5 introduces private, protected, and public object methods, but there is no functionality to list just the private or just the public methods in an object. The get_class_methods() function will return all method names, regardless of protection level. I would like to suggest either overloading the get_class_methods() function to take a protection level argument (for example, $array=get_class_methods($object,'private)) or creation of a set of functions to do the same (get_class_public_methods(), get_class_private_methods()). Yes, I could use the Reflection API, but that's serious overkill... -- Edit bug report at http://bugs.php.net/?id=30398&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30398&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30398&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30398&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30398&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30398&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30398&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30398&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30398&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30398&r=support Expected behavior: http://bugs.php.net/fix.php?id=30398&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30398&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30398&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30398&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30398&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30398&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30398&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30398&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30398&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30398&r=mysqlcfg