#31992 [Opn->Bgs]: foreach() control structure and Turck MMCache

From: Date: Wed, 16 Feb 2005 11:53:12 +0000
Subject: #31992 [Opn->Bgs]: foreach() control structure and Turck MMCache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74161@lists.php.net to get a copy of this message
ID: 31992 Updated by: derick@php.net Reported By: admin at polad dot ru -Status: Open +Status: Bogus Bug Type: *Programming Data Structures Operating System: Linux, FreeBSD PHP Version: 4.3.10 New Comment: Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. . Previous Comments: ------------------------------------------------------------------------ [2005-02-16 09:17:34] admin at polad dot ru 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31992&edit=1

« previous php.bugs (#74161) next »