ID: 31114
Updated by: [EMAIL PROTECTED]
Reported By: clemens at gutweiler dot net
Status: Assigned
Bug Type: Arrays related
Operating System: Linux 2.4.27
PHP Version: 4.3.10
Assigned To: derick
New Comment:
snaury at narod dot ru:
your problem has nothing to do with this report.
upgrade ZendOptimizer and it will disappear.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2004-12-16 13:07:17] [EMAIL PROTECTED]
(The only bug here is that it doesn't give a warning, using $k for both
key and value is not supposed to work!)
------------------------------------------------------------------------
[2004-12-16 11:41:54] [EMAIL PROTECTED]
I don't think this was ever supposed to work.
------------------------------------------------------------------------
[2004-12-16 11:14:47] mc at tyumen dot ru
Cangelog:
"Backported Marcus' foreach() speedup patch from PHP 5.x."
How I can remove this patch ?
For example doesn't work Smarty.
------------------------------------------------------------------------
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