|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-03 20:58 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 09:00:02 2025 UTC |
Description: ------------ next() misbehaves: it does not increment the internal position pointer with PHP 4.4.1 Reproduce code: --------------- <?php $test = array(); for ($i = 0; $i < 10; $i++) { $test[] = $i; } while (next($test)) { echo current($test) . "<br />"; } ?> Expected result: ---------------- 1 2 3 4 5 6 7 8 9 Actual result: -------------- 1 1 1 1 1 1 1 1 1