|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-17 08:18 UTC] tabacco at adventuregamers dot com
[2004-12-17 08:42 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Description: ------------ When I upgraded to 4.3.10 from 4.3.9, every piece of code on my site that used foreach() broke. As near as I can tell, in foreach($array as $value), $value wasn't being set. I uninstalled 4.3.10 and reinstalled 4.3.9 and it works beautifully again. I used the same php.ini all three times. Reproduce code: --------------- <?php $test_arr = array(1,2,3,4,5); foreach($test_arr as $number) { echo $number; } ?> Expected result: ---------------- It should print: 12345 Actual result: -------------- It prints nothing, and isset($number) returns FALSE.