Re: Array behaviour change intentional?

From: Date: Tue, 24 Jun 2003 17:27:20 +0000
Subject: Re: Array behaviour change intentional?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-2728@lists.php.net to get a copy of this message
On Tue, 2003-06-24 at 08:35, Jani Taskinen wrote: > On Sat, 21 Jun 2003, Lars Torben Wilson wrote: > > >Hi there, > > > >It seems that array appending has changed wrt negative indices. I had > >just documented the new behaviour but now I'm not entirely sure whether > >I've just documented an unintentional change. Is this new behaviour what > >is desired (i.e. skipping straight from some negative key to 0 when > >appending with $arr[] = <expr>). > Seems to have been changed in between 4.2.3 and 4.3.0. > There is/was some bug reports about this too, iirc. > > Not very critical, I don't think there are that many scripts > using this? > > --Jani Probably not--but there are enough for people to have noticed and complained. At the very least it's hard to document the correct behaviour. :) Essentially I just need to know what to write in the docs, because at the moment we don't know what the intended behaviour is. Should I just write that the behaviour of negative indices is undefined, as you appear to be implying (i.e. unimportant and therefore possibly changing at random?) -- Torben Wilson <torben@php.net> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----

« previous php.internals (#2728) next »