php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48138 call_user_func documentation confusing and vague for callback usage.
Submitted: 2009-05-03 19:07 UTC Modified: 2009-05-04 22:21 UTC
From: cythrawll at codeangel dot org Assigned: fa (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-05-03 19:07 UTC] cythrawll at codeangel dot org
Description:
------------
Documentation for call_user_func implicitly mentions methods of calling static methods from a class, but fails to mention that any callback is valid, this seemed to cause confusion that methods from an object can not be called from this function.

User was convinced this wouldn't work because of the documentation:
call_user_func(array($objinstance, 'methodname'), $arg);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-04 22:21 UTC] fa@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.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of fa
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=911aec1fa7496cc2eac160e6d2091ef864baede3
Log: fixed bug #48138
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 16:00:02 2026 UTC