|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-23 01:50 UTC] helly@php.net
[2004-04-23 05:49 UTC] adam at trachtenberg dot com
[2005-01-10 15:23 UTC] sniper@php.net
[2005-01-10 18:08 UTC] adam at trachtenberg dot com
[2005-01-10 20:05 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
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 ] { }