ID:               35310
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to