|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-16 12:53 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ We use last version of PHP and Turck MMCache Everything works well with version of PHP up to 4.3.5 When we've upgraded PHP to 4.3.10 we found that foreach() structure doesn't work with Turck MMCache. This code works with PHP 4.3.10 If we encode this code using Turck MMCache we get bad result... Reproduce code: --------------- <? $array1 = array(1, 2, 3, 4); foreach ($array1 as $key => $value) { echo "Key: $key; Value: $value<br />\n"; } ?> Expected result: ---------------- Key: 0; Value: 1 Key: 1; Value: 2 Key: 2; Value: 3 Key: 3; Value: 4 Actual result: -------------- Key: ; Value: Key: ; Value: Key: ; Value: Key: ; Value: --- ONLY running encoded php