Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #31992 : foreach() control structure and Turck MMCache
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th March 10:47
php-bugs
External User
 
Posts: 1
Default #31992 : foreach() control structure and Turck MMCache



From: admin at polad dot ru
Operating system: Linux, FreeBSD
PHP version: 4.3.10
PHP Bug Type: *Programming Data Structures
Bug description: foreach() control structure and Turck MMCache

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 bug report at http://bugs.php.net/?id=31992&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31992&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31992&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31992&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31992&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31992&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31992&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31992&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31992&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31992&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31992&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31992&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31992&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31992&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31992&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31992&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31992&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31992&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31992&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31992&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31992&r=mysqlcfg
  Reply With Quote


  sponsored links


2 11th March 10:47
External User
 
Posts: 1
Default #31992 : foreach() control structure and Turck MMCache



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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666