|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-16 15:08 UTC] derick@php.net
[2004-12-17 02:32 UTC] honestqiao at sohu dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 01:00:02 2025 UTC |
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.