Re: #24159 [Ver->Csd]: Php starts indexing from zero if lowest index is negative

From: Date: Sat, 07 Aug 2004 15:28:08 +0000
Subject: Re: #24159 [Ver->Csd]: Php starts indexing from zero if lowest index is negative
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362849@lists.php.net to get a copy of this message
> ID: 24159 > Updated by: vrana@php.net > Reported By: rsen010 at ec dot auckland dot ac dot nz > -Status: Verified > +Status: Closed > Bug Type: Documentation problem > Operating System: Any > PHP Version: 4.3.2, 5.0.0b2-dev > New Comment: > > Thank you for your bug report. This issue has already been fixed > in the latest released version of PHP, which you can download at > http://www.php.net/downloads.php > > "As of PHP 4.3.0, the index generation behaviour described above has > changed. Now, if you append to an array in which the current maximum > key is negative, then the next key created will be zero (0). Before, > the new index would have been set to the largest existing key + 1, the > same as positive indices are." I didn't see a commit message for this one. Didn't you forget to commit the file? Nuno

« previous php.doc (#969362849) next »