#44965 [Opn]: Zend affects on arrays

From: Date: Sat, 10 May 2008 21:29:09 +0000
Subject: #44965 [Opn]: Zend affects on arrays
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124880@lists.php.net to get a copy of this message
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

« previous php.bugs (#124880) next »