* Made clearer the requirements for the callback function, as per bug #52778

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303045 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gustavo André dos Santos Lopes 2010-09-05 05:26:29 +00:00
parent 72c4b4b64c
commit a0575612f2

View file

@ -54,10 +54,11 @@
</para>
</note>
<para>
Users may not change the <parameter>array</parameter> itself from the
callback function. e.g. Add/delete elements, unset elements, etc. If
the array that <function>array_walk</function> is applied to is
changed, the behavior of this function is undefined, and unpredictable.
Only the values of the <parameter>array</parameter> may potentially be
changed; its structure cannot be altered, i.e., the programmer cannot
add, unset or reorder elements. If the callback does not respect this
requirement, the behavior of this function is undefined, and
unpredictable.
</para>
</listitem>
</varlistentry>