|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-21 18:28 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 05:00:01 2025 UTC |
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.