Re: PHP 4.0 Bug #3634: arrays in list

From: Date: Sun, 27 Feb 2000 08:24:39 +0000
Subject: Re: PHP 4.0 Bug #3634: arrays in list
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16070@lists.php.net to get a copy of this message
Hi : > list ( $z , $x[] , $x[] ) = array ( "blah" , 1 , 2 ); : > print "$z = $x[0] = $x[1]"; : > : > : > PHP 4b4 pl1: : > blah = 2 = 1 (should be: blah = 1 = 2) : > : > : > PHP 4b3: : > blah = 1 = 2 : > : > : > Let me know when its stabbed to death! ;-) : : I believe Andi posted about two weeks back that list() is not guaranteed : to assign values in any well-defined order. But why does it ALWAYS set the correct order in PHP4b3 and REVERSED (not random!) order in PHP4b4..... Thanks. Faisal

« previous php.dev (#16070) next »