svn: /phpdoc/en/trunk/reference/array/functions/ list.xml

From: Date: Thu, 08 Dec 2011 21:25:44 +0000
Subject: svn: /phpdoc/en/trunk/reference/array/functions/ list.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9187@lists.php.net to get a copy of this message
nikic Thu, 08 Dec 2011 21:25:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320698 Log: Fix Doc Bug #51112: list() misbehaviour Add a warning saying that modification of the array being destructured during list() execution will result in undefined behavior. Bug: https://bugs.php.net/51112 (Open) list() misbehaviour Changed paths: U phpdoc/en/trunk/reference/array/functions/list.xml Modified: phpdoc/en/trunk/reference/array/functions/list.xml =================================================================== --- phpdoc/en/trunk/reference/array/functions/list.xml 2011-12-08 21:22:21 UTC (rev 320697) +++ phpdoc/en/trunk/reference/array/functions/list.xml 2011-12-08 21:25:44 UTC (rev 320698) @@ -168,6 +168,12 @@ assigned in the reverse order. </para> </warning> + <warning> + <para> + Modification of the array during <function>list</function> execution (e.g. + using <literal>list($a, $b) = $b</literal>) results in undefined behavior. + </para> + </warning> <note> <para> <function>list</function> only works on numerical arrays and assumes

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