php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35652 Improvements on the call_user_func() manual page
Submitted: 2005-12-12 22:37 UTC Modified: 2005-12-13 00:04 UTC
From: colder@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-12-12 22:37 UTC] colder@php.net
Description:
------------
I would like to propose this patch to make the call_user_func() manual page clearer. The actual version doesn't make a lot of sense, mixing object, $objectname and static methods together.

Another improvement is already stated in #30063.

http://colder.ch/patches/call-user-func.patch 


Index: call-user-func.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/funchand/functions/call-user-func.xml,v
retrieving revision 1.13
diff -u -r1.13 call-user-func.xml
--- call-user-func.xml	20 Jan 2005 12:44:59 -0000	1.13
+++ call-user-func.xml	12 Dec 2005 21:25:17 -0000
@@ -38,8 +38,8 @@
      </informalexample>
     </para>
     <para>
-     Object methods may also be invoked statically using this function
-     by passing <literal>array($objectname, $methodname)</literal> to
+     Class methods may also be invoked statically using this function
+     by passing <literal>array($classname, $methodname)</literal> to
      the <parameter>function</parameter> parameter.
      <informalexample>
       <programlisting role="php">


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-12 22:43 UTC] colder@php.net
Sorry, the improvement I talked about (#30063) seems already made.
 [2005-12-12 22:53 UTC] nlopess@php.net
fine with me. go ahead and commit ;)
 [2005-12-12 23:00 UTC] colder@php.net
ack, I forgot to tell: I don't have the sufficient karma for it. Could somebody commit it ? 

Thanks in advance.
 [2005-12-13 00:04 UTC] nlopess@php.net
Patched applied. Thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 14:00:01 2025 UTC