Re: [PHP-DEV] PHP 4.0 Bug #3634: arrays in list From: Adam Trachtenberg (adam <email protected>)
Date: 02/28/00

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 <email protected>           | http://www.student.com    /

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>