php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41569 Reflection*::invoke(mixed args) actually accepts zero or more arguments
Submitted: 2007-06-02 20:51 UTC Modified: 2007-08-17 05:00 UTC
From: salsi at icosaedro dot it Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: salsi at icosaedro dot it
New email:
PHP Version: OS:

 

 [2007-06-02 20:51 UTC] 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])



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-17 05:00 UTC] vrana@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Aug 06 18:00:03 2025 UTC