From: adam at trachtenberg dot com Operating system: * PHP version: 5CVS-2004-04-23 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Reflection API doesn't return parameter data for built-in methods
Description: ------------ The Reflection API doesn't return parameter information for built-in classes, like it does for user-defined classes. Reproduce code: --------------- // userland class class ReflectionTest { function test($foo, $bar) {} } Reflection::export( new ReflectionClass('ReflectionTest')); // example of a system class Reflection::export(new ReflectionClass('Exception')); Expected result: ---------------- The "methods" section of "Exception" should look like similar to the "methods" section of "ReflectionTest" In other words, there should be a "Parameters" block for methods, like __construct(), that take parameters. This doesn't just apply to Exception, but all classes written in C. Actual result: -------------- ReflectionTest: - Methods [1] { Method [ <user> public method test ] { @@ /www/reflection.php 9 - 9 - Parameters [2] { Parameter #0 [ $foo ] Parameter #1 [ $bar ] } } Exception: - Methods [9] { Method [ <internal> final private method __clone ] { } Method [ <internal> <ctor> method __construct ] { } Method [ <internal> final public method getMessage ] { } Method [ <internal> final public method getCode ] { } Method [ <internal> final public method getFile ] { } Method [ <internal> final public method getLine ] { } Method [ <internal> final public method getTrace ] { } Method [ <internal> final public method getTraceAsString ] { } Method [ <internal> public method __toString ] { } -- Edit bug report at http://bugs.php.net/?id=28114&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28114&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28114&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28114&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28114&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28114&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28114&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28114&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28114&r=support Expected behavior: http://bugs.php.net/fix.php?id=28114&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28114&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28114&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28114&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28114&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28114&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28114&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28114&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28114&r=float