ID: 35485 Updated by: [EMAIL PROTECTED] Reported By: vma1 at abv dot bg -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Slackware 10.1, kernel 2.4.31 PHP Version: 5CVS-2005-11-30 (snap) New Comment:
This is expected behaviour, no bug. Previous Comments: ------------------------------------------------------------------------ [2005-11-30 13:35:58] vma1 at abv dot bg So what? each() is not touching the $items array, it is touching the $items [0], and $items [1] elements which are arrays as well. ------------------------------------------------------------------------ [2005-11-30 13:30:05] [EMAIL PROTECTED] http://php.net/each each -- Return the current key and value pair from an array and *advance the array cursor* ------------------------------------------------------------------------ [2005-11-30 13:23:51] vma1 at abv dot bg In my previous comment I meant that no array elements are being added/removed. Besides try removing the each() operator and behaviour becomes correct. Something that should not happen. ------------------------------------------------------------------------ [2005-11-30 13:19:05] vma1 at abv dot bg The array is not being modified. ------------------------------------------------------------------------ [2005-11-30 12:54:27] [EMAIL PROTECTED] Do not modify array in the foreach() loop. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35485 -- Edit this bug report at http://bugs.php.net/?id=35485&edit=1