PHP 4.0 Bug #5226: arrayfields reorganized when using array_pop

From: Date: Sun, 25 Jun 2000 16:56:19 +0000
Subject: PHP 4.0 Bug #5226: arrayfields reorganized when using array_pop
Groups: php.dev 
Request: Send a blank email to php-dev+get-22277@lists.php.net to get a copy of this message
From: bretschneider@freestyling.de Operating system: freebsd 3.1 PHP version: 4.0.0 Release PHP Bug Type: Scripting Engine problem Bug description: arrayfields reorganized when using array_pop <? $A[1] = 'A'; $A[2] = 'B'; $A[3] = 'C'; $DUMP = array_pop($A); for ($i=0; $i<=sizeof($A); $i++) { print "$i = ".$A[$i]."<br>\n"; } ?> returns: 0 = A 1 = B 2 = but should return 0 = 1 = A 2 = B

« previous php.dev (#22277) next »