PHP 4.0 Bug #1942: each() works wrong ?!?

From: Date: Sun, 01 Aug 1999 19:38:49 +0000
Subject: PHP 4.0 Bug #1942: each() works wrong ?!?
Groups: php.dev 
Request: Send a blank email to php-dev+get-9434@lists.php.net to get a copy of this message
From: maverick@wallstreet-online.de Operating system: suse linux 6.1 (2.3.9) PHP version: 4.0 Beta 1 PHP Bug Type: Misbehaving function Bug description: each() works wrong ?!? Ok, each() simply screw the array or else the array-structure has changed. $array[foo] = 'Bahnhof'; #php3 list($n,$v)=each($array); print "$n = $v"; #foo = 'Bahnhof'; list($n,$v)=each($array); print "$n = $v"; #0 = 'Bahnhof'; ########## #php4 beta 1 list($n,$v)=each($array); print "$n = $v"; #0 = 'Bahnhof'; list($n,$v)=each($array); print "$n = $v"; #foo = 'Bahnhof'; ########## It's no great bug, but's irritating ;)

« previous php.dev (#9434) next »