note 58447 added to function.next

From: Date: Fri, 04 Nov 2005 13:26:03 +0000
Subject: note 58447 added to function.next
Groups: php.notes 
Request: Send a blank email to php-notes+get-98071@lists.php.net to get a copy of this message
It appears to me that as of PHP 4.4.1 the next() function doesn't work anymore when the array is a reference. This example would cause an infinite loop on 4.4.1. function example(&$array) { reset($array); while($k = key($array)) { next($array); } } just how many of these reference related 'feature changes' are there? i mean, this is pretty lame if you ask me.. ---- Manual Page -- http://www.php.net/manual/en/function.next.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58447 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58447&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58447&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98071) next »