From: robin_fernandes at uk dot ibm dot com Operating system: Windows PHP version: 5.3CVS-2008-07-20 (snap) PHP Bug Type: Reflection related Bug description: ReflectionClass::export() shows superclasses' private static methods.
Description: ------------ A change was made in 5.3 so that ReflectionClass::export() does not list private methods from superclasses (see http://bugs.php.net/37964). However, the change was not applied for static methods. Proposed patch to restore consistency: http://pastebin.ca/1077574 . Reproduce code: --------------- <?php Class A { private function f() {} private static function sf() {} } Class C extends A { } ReflectionClass::export("C"); ?> Expected result: ---------------- Class [ <user> class C extends A ] { @@ %s 7-7 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [0] { } } Actual result: -------------- Class [ <user> class C extends A ] { @@ %s 7-7 - Constants [0] { } - Static properties [0] { } - Static methods [1] { Method [ <user, inherits A> static private method sf ] { @@ %s 4 - 4 } } - Properties [0] { } - Methods [0] { } } -- Edit bug report at http://bugs.php.net/?id=45571&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45571&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45571&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45571&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45571&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45571&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45571&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45571&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45571&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45571&r=support Expected behavior: http://bugs.php.net/fix.php?id=45571&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45571&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45571&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45571&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45571&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45571&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45571&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45571&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45571&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45571&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45571&r=mysqlcfg
