mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
* 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:
parent
72c4b4b64c
commit
a0575612f2
1 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue