svn: /phpdoc/en/trunk/reference/array/functions/ array-walk.xml

From: Date: Sun, 05 Sep 2010 05:26:29 +0000
Subject: svn: /phpdoc/en/trunk/reference/array/functions/ array-walk.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7059@lists.php.net to get a copy of this message
cataphract Sun, 05 Sep 2010 05:26:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=303045 Log: * Made clearer the requirements for the callback function, as per bug #52778 Bug: http://bugs.php.net/52778 (Bogus) array_walk() doc contradicts itself Changed paths: U phpdoc/en/trunk/reference/array/functions/array-walk.xml Modified: phpdoc/en/trunk/reference/array/functions/array-walk.xml =================================================================== --- phpdoc/en/trunk/reference/array/functions/array-walk.xml 2010-09-05 04:53:41 UTC (rev 303044) +++ phpdoc/en/trunk/reference/array/functions/array-walk.xml 2010-09-05 05:26:29 UTC (rev 303045) @@ -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>

« previous php.doc.cvs (#7059) next »