Re: PHP 4.0 Bug #3634: arrays in list

From: Date: Mon, 28 Feb 2000 16:49:40 +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-16096@lists.php.net to get a copy of this message
On Sun, 27 Feb 2000, Faisal Nasim wrote: > : 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..... Right. In one version the behavior may be one way; in another version the behavior may change. If notice that for the version of PHP you're using the behavior seems to be consistant, you may choose to write scripts that depend upon it. However, those scripts may break when you upgrade and you shouldn't be surprised by that, nor expect any heads up warning, since you're not supposed to be depending upon it in the first place. -adam -- / adam maccabee trachtenberg | visit college life online \ \ adam@student.net | http://www.student.com /

« previous php.dev (#16096) next »