Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3868 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55870 invoked from network); 12 Aug 2003 12:25:47 -0000 Received: from unknown (HELO asuka.nerv) (24.112.18.98) by pb1.pair.com with SMTP; 12 Aug 2003 12:25:47 -0000 Received: (qmail 1675 invoked from network); 12 Aug 2003 12:39:16 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 12 Aug 2003 12:39:16 -0000 Reply-To: ilia@prohost.org Organization: Prohost.org To: zeev@zend.com, internals@lists.php.net Date: Tue, 12 Aug 2003 08:39:25 -0400 User-Agent: KMail/1.5.3 References: <5.1.0.14.2.20030812092713.061dc8d8@localhost> In-Reply-To: <5.1.0.14.2.20030812092713.061dc8d8@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200308120839.25356.ilia@prohost.org> Subject: Re: [PHP-DEV] Bugfix #21918 From: ilia@prohost.org (Ilia Alshanetsky) On August 12, 2003 02:27 am, Zeev Suraski wrote: > At 05:16 11/08/2003, Ilia Alshanetsky wrote: > >+1 > > > >This patch not only fixes the above mentioned bugs, but also serveral > >backwards compatibility issues that occured due to the fix for bug #18140. > > Can you provide an example? Original Bugs that caused BC break. php -r ' $arr = array(0=>0,-1=>0); $arr[] = 0; ' This caused a segmentation fault in 4.2.3 Here is one example of the problem. php -r ' $arr[-2] = 1; $arr[] = 2; print_r($arr); ' PHP 4.2.3 Array ( [-2] => 1 [-1] => 2 ) PHP 4.3.X/5.X (wo/patch) Array ( [-2] => 1 [0] => 2 ) PHP 4.3.X/5.X (w/patch) Array ( [-2] => 1 [-1] => 2 ) Ilia