#35310 [NEW]: getParameters() methods have been lost in Reflection classes

From: Date: Mon, 21 Nov 2005 10:02:25 +0000
Subject: #35310 [NEW]: getParameters() methods have been lost in Reflection classes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88610@lists.php.net to get a copy of this message
From: demiurg at gmail dot com Operating system: Linux i686 PHP version: 6CVS-2005-11-21 (CVS) PHP Bug Type: Unknown/Other Function Bug description: getParameters() methods have been lost in Reflection classes Description: ------------ I'm getting fatal error messages "Call to undefined method" when trying to call ->getParameters() methods for both ReflectionFunction and ReflectionMethod objects. Has that been left out intentionally to prohibit checking parameters' information for internal structures or is it just a bug? PHP Version information: ---------- PHP 6.0.0-dev (cli) (built: Nov 21 2005 09:27:39) Copyright (c) 1997-2005 The PHP Group Zend Engine v3.0.0-dev, Copyright (c) 1998-2005 Zend Technologies Reproduce code: --------------- ---------- # php -r "\$R = new ReflectionFunction('strlen'); var_dump(\$R->getParameters());" Fatal error: Call to undefined method ReflectionFunction::getParameters() in Command line code on line 1 ---------- # php -r "\$R = new ReflectionClass('ArrayObject'); \$M = \$R->getMethod('count'); var_dump(\$M->getParameters(\$M));" Fatal error: Call to undefined method ReflectionMethod::getParameters() in Command line code on line 1 ---------- Expected result: ---------------- No error messages. Actual result: -------------- Fatal errors. -- Edit bug report at http://bugs.php.net/?id=35310&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35310&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35310&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35310&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35310&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35310&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35310&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35310&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35310&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35310&r=support Expected behavior: http://bugs.php.net/fix.php?id=35310&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35310&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35310&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35310&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35310&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35310&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35310&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35310&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35310&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35310&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35310&r=mysqlcfg

« previous php.bugs (#88610) next »