ID: 15750 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: FreeBSD-4.3 PHP Version: 4.0.6 New Comment:
Sorry. We don't fix bugs for 4.0.6. It works as expected for current CVS. and 4.1.2. Use 4.1.2 ;) Previous Comments: ------------------------------------------------------------------------ [2002-02-27 01:16:02] [EMAIL PROTECTED] Thais kind of error does NOT occur at PHP4.1 for Win32, but I have no opportunity to check it at the same version PHP for FreeBSD. Example: <? $group = array(array(1, 2, 3), array(4, 5, 6)); $count = 2; for ($c = 0; $c < $count; $c++) { reset($group); while (list($i) = each($group)) { list($key, $val) = each($group[$i]); echo "$val "; } } ?> That scrips produces "1 4 2 5 " at PHP4.1.0@Win32 but "1 4 1 4" at [EMAIL PROTECTED] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15750&edit=1