php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31992 foreach() control structure and Turck MMCache
Submitted: 2005-02-16 09:17 UTC Modified: 2005-02-16 12:53 UTC
From: admin at polad dot ru Assigned:
Status: Not a bug Package: *Programming Data Structures
PHP Version: 4.3.10 OS: Linux, FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at polad dot ru
New email:
PHP Version: OS:

 

 [2005-02-16 09:17 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-16 12:53 UTC] derick@php.net
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.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 21:01:29 2024 UTC