php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61891 call user func array
Submitted: 2012-05-01 16:32 UTC Modified: 2013-10-09 06:18 UTC
From: zoe_grindcore at yahoo dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.11 OS: twitter
Private report: No CVE-ID: None
 [2012-05-01 16:32 UTC] zoe_grindcore at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/function.mysql-fetch-assoc#refsect1-function.mysql-fetch-assoc-seealso
---ujiscript
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">



Test script:
---------------
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">



Expected result:
----------------
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">



Actual result:
--------------
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
 [2012-05-01 18:59 UTC] stas@php.net
-Type: Security +Type: Documentation Problem -Package: MySQL related +Package: Documentation problem
 [2013-10-09 06:18 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-09 06:18 UTC] krakjoe@php.net
This wording is no longer used in the documentation, so closing bug.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 19:00:01 2026 UTC