ID: 31124
Updated by: [EMAIL PROTECTED]
Reported By: honestqiao at sohu dot com
-Status: Open
+Status: Bogus
Bug Type: Zend Engine 2 problem
Operating System: Windows NT
PHP Version: 4.3.10
New Comment:
See #31123
Previous Comments:
------------------------------------------------------------------------
[2004-12-16 14:53:00] honestqiao at sohu dot com
Description:
------------
Run Env 1:
Windows NT LOCALHOST 5.1 build 2600/WinXP SP2 Pro
Apache2.0.52
PHP4.3.10
Zend Optimizer-2.5.5
Run Env 2:
Windows NT XYSTER_WIN2K 5.0 build 2195
Apache1.3.27
PHP4.3.10
Zend Optimizer-2.1.0
If don't use Zend Optimizer,it's Expected result.
If use Zend Optimizer,it's Actual result.
If use Turck MMCache 2.4.6 , it's Expected result.
Reproduce code:
---------------
<?php
$intArray = array (1, 2, 3, 17);
foreach ($intArray as $value) {
print "Current value of \$intArray: $value.\n";
}
?>
Expected result:
----------------
Current value of $intArray: 1.
Current value of $intArray: 2.
Current value of $intArray: 3.
Current value of $intArray: 17.
Actual result:
--------------
Current value of $intArray: Array.
Current value of $intArray: Array.
Current value of $intArray: Array.
Current value of $intArray: Array.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31124&edit=1