svn: /phpdoc/en/trunk/reference/funchand/functions/ call-user-func-array.xml call-user-func.xml
| From: | Gustavo André dos Santos Lopes | Date: | Sun, 24 Oct 2010 12:49:58 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/funchand/functions/ call-user-func-array.xml call-user-func.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7316@lists.php.net to get a copy of this message | ||
cataphract Sun, 24 Oct 2010 12:49:58 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304696
Log:
- Fixed subject/predicate concordance in notes in call_user_func(_array). Closes bug #53143.
- Improved the note on call_user_func_array on passing by value/reference.
Bug: http://bugs.php.net/53143 (Open) Grammatical error on
documentation
Changed paths:
U phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml
U phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml
Modified: phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml
===================================================================
--- phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml 2010-10-24 12:48:02 UTC
(rev 304695)
+++ phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml 2010-10-24 12:49:58 UTC
(rev 304696)
@@ -66,9 +66,9 @@
<entry>5.3.0</entry>
<entry>
The interpretation of object oriented keywords like <literal>parent</literal>
- and <literal>self</literal> have changed. Previously calling them using the
+ and <literal>self</literal> has changed. Previously, calling them using the
double colon syntax would emit an <constant>E_STRICT</constant> warning because
- they was interpreted as static.
+ they were interpreted as static.
</entry>
</row>
</tbody>
@@ -173,9 +173,15 @@
<note>
<para>
Referenced variables in <parameter>param_arr</parameter> are passed to the
- function by a reference, others are passed by a value. In other words, it
- does not depend on the function signature whether the parameter is passed
- by a value or by a reference.
+ function by reference, regardless of whether the function expects the
+ respective parameter to be passed by reference. This form of call-time
+ pass by reference does not emit a deprecation notice, but it is nonetheless
+ deprecated, and will most likely be removed in the next version of PHP.
+ Furthermore, this does not apply to internal functions, for which
+ the function signature is honored. Passing by value when the function expects
+ a parameter by reference results in a warning and having
+ <function>call_user_func</function> return &false; (does not apply if the
+ passed value has a reference count = 1).
</para>
</note>
¬e.func-callback-exceptions;
Modified: phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml
===================================================================
--- phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml 2010-10-24 12:48:02 UTC (rev
304695)
+++ phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml 2010-10-24 12:49:58 UTC (rev
304696)
@@ -105,9 +105,9 @@
<entry>5.3.0</entry>
<entry>
The interpretation of object oriented keywords like <literal>parent</literal>
- and <literal>self</literal> have changed. Previously calling them using the
+ and <literal>self</literal> has changed. Previously, calling them using the
double colon syntax would emit an <constant>E_STRICT</constant> warning because
- they was interpreted as static.
+ they were interpreted as static.
</entry>
</row>
</tbody>