#41569 [Opn->Csd]: Reflection*::invoke(mixed args) actually accepts zero or more arguments
| From: | vrana@php.net | Date: | Fri, 17 Aug 2007 05:00:08 +0000 |
| Subject: | #41569 [Opn->Csd]: Reflection*::invoke(mixed args) actually accepts zero or more arguments | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377515@lists.php.net to get a copy of this message | ||
ID: 41569
Updated by: vrana@php.net
Reported By: salsi at icosaedro dot it
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2007-06-02 20:51:15] salsi at icosaedro dot it
Description:
------------
The Reflection*::invoke() methods accept zero or more arguments of
mixed type, but the signature as reported in the documentation about the
Reflection* classes does not make this evident, and apparently there is
only one mandatory argument.
A syntax similar to call_user_func() should be used instead, so:
ReflectionFunction::invoke(mixed args) becomes
ReflectionFunction::invoke([mixed $...])
and
ReflectionMethod::invoke(object obj, mixed args) becomes
ReflectionMethod::invoke(object obj [, [mixed $args])
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41569&edit=1