php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35310 getParameters() methods have been lost in Reflection classes
Submitted: 2005-11-21 11:02 UTC Modified: 2005-11-21 18:28 UTC
From: demiurg at gmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 6CVS-2005-11-21 (CVS) OS: Linux i686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: demiurg at gmail dot com
New email:
PHP Version: OS:

 

 [2005-11-21 11:02 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-21 18:28 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 08:00:03 2025 UTC