#35310 [Opn->Csd]: getParameters() methods have been lost in Reflection classes
| From: | sniper@php.net | Date: | Mon, 21 Nov 2005 17:28:22 +0000 |
| Subject: | #35310 [Opn->Csd]: getParameters() methods have been lost in Reflection classes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88632@lists.php.net to get a copy of this message | ||
ID: 35310
Updated by: sniper@php.net
Reported By: demiurg at gmail dot com
-Status: Open
+Status: Closed
Bug Type: *General Issues
Operating System: Linux i686
PHP Version: 6CVS-2005-11-21 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-11-21 11:02:22] demiurg at gmail dot com
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 this bug report at http://bugs.php.net/?id=35310&edit=1