Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2728 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8850 invoked from network); 24 Jun 2003 17:28:39 -0000 Received: from unknown (HELO pd3mo1so.prod.shaw.ca) (24.71.223.10) by pb1.pair.com with SMTP; 24 Jun 2003 17:28:39 -0000 Received: from pd3mr3so.prod.shaw.ca (pd3mr3so-ser.prod.shaw.ca [10.0.141.179]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HGZ002J6XUAHD@l-daemon> for internals@lists.php.net; Tue, 24 Jun 2003 11:27:46 -0600 (MDT) Received: from pn2ml7so.prod.shaw.ca (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HGZ0051JXUAKJ@l-daemon> for internals@lists.php.net; Tue, 24 Jun 2003 11:27:46 -0600 (MDT) Received: from h24-84-221-8.vc.shawcable.net (h24-84-221-8.vc.shawcable.net [24.84.221.8]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HGZ00JU1XU9VB@l-daemon> for internals@lists.php.net; Tue, 24 Jun 2003 11:27:46 -0600 (MDT) Date: Tue, 24 Jun 2003 10:27:20 -0700 In-reply-to: To: Jani Taskinen Cc: internals@lists.php.net Message-ID: <1056475639.999.2.camel@ali> Organization: MIME-version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Content-type: text/plain Content-transfer-encoding: 7BIT References: <1056223169.965.68.camel@ali> Subject: Re: [PHP-DEV] Array behaviour change intentional? From: torben@php.net (Lars Torben Wilson) 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[] = ). > 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 +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 ====-----