ID: 31114 Updated by: [EMAIL PROTECTED] Reported By: clemens at gutweiler dot net -Status: Open +Status: Assigned Bug Type: Arrays related Operating System: Linux 2.4.27 PHP Version: 4.3.10 -Assigned To: +Assigned To: derick New Comment:
Again: upgrade ZendOptimizer. This is different bug-report, please, don't add comments to it. Previous Comments: ------------------------------------------------------------------------ [2004-12-17 14:00:02] [EMAIL PROTECTED] This is not assigned to me. ------------------------------------------------------------------------ [2004-12-17 13:56:20] snaury at narod dot ru I just downloaded 4.3.10 (Win32) and found that I can't make code to reproduce this error. :/ But strange there was this error until I changed all foreach($arr as $value) to foreach($arr as $unused => $value). I detected that this is array because I inserted echo($value) in one of the loops and it printed Array. That's very strange... ------------------------------------------------------------------------ [2004-12-17 13:55:21] [EMAIL PROTECTED] snaury at narod dot ru: your problem has nothing to do with this report. upgrade ZendOptimizer and it will disappear. ------------------------------------------------------------------------ [2004-12-17 13:46:37] snaury at narod dot ru This patch seems to be much more serios. I found that when I was using foreach($arr as $value), instead of receiving a value in $value, I was getting a strange array, which broke my script (while foreach($arr as $key => $value) was working fine). Unfortunately I can't tell you exactly what was happening, as my hoster operatively returned 4.3.9 back... ------------------------------------------------------------------------ [2004-12-16 22:32:14] [EMAIL PROTECTED] I just tested this on PHP 4.3.1 and 4.3.2 and it behaves in the same way, making this a non-critical bug and not related to the foreach speed-up patch. Assigning to Andi, as he might have a clue why this happens. The new foreach code is definitely not the problem here. ------------------------------------------------------------------------ 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/31114 -- Edit this bug report at http://bugs.php.net/?id=31114&edit=1