ID: 44965 User updated by: yektaweb at gmail dot com Reported By: yektaweb at gmail dot com Status: Open Bug Type: Arrays related Operating System: win xp PHP Version: 5.2.6 New Comment:
I am using Apache/2.2.0 Zend Optimizer v3.3.0 Zend SG Suite 3.1.0 Previous Comments: ------------------------------------------------------------------------ [2008-05-10 21:22:05] yektaweb at gmail dot com Description: ------------ Zend affects on arrays (PHP Version 5.1.2) Reproduce code: --------------- <?php $fruits = array ("h" => "orange", "b" => "banana", "c" => "apple"); foreach ($fruits as $value) { $my_f = key($fruits); echo $my_f . '<br><br>'; next($fruits); } ?> Expected result: ---------------- h b c Actual result: -------------- b b c ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44965&edit=1