Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81949 invoked from network); 23 Mar 2009 14:21:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2009 14:21:09 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:25181] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/A2-03220-5DA97C94 for ; Mon, 23 Mar 2009 09:21:09 -0500 Received: from ws.home ([10.1.10.24]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 23 Mar 2009 16:20:35 +0200 Message-ID: <49C79ACF.50306@zend.com> Date: Mon, 23 Mar 2009 17:21:03 +0300 User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: Rasmus Lerdorf , Matt Wilmas , internals@lists.php.net, =?ISO-8859-1?Q?Johannes_Schl=FCter?= References: <1113CE12226949C2939A31971420991F@pc1> <49C0A7C7.8000804@zend.com> <12E613FAA1C9422B948F00B61AD32366@pc1> <49C134E5.7020706@zend.com> <49C29EEF.9010702@lerdorf.com> <6418ED1D-5CC3-4CA9-8C06-80FBE9864190@pooteeweet.org> In-Reply-To: <6418ED1D-5CC3-4CA9-8C06-80FBE9864190@pooteeweet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Mar 2009 14:20:35.0411 (UTC) FILETIME=[88377230:01C9ABC2] Subject: Re: array kindex overflow issue Re: [PHP-DEV] Re: [PATCH] Bug #45877: LONG_MAX/MIN array key as string/int From: dmitry@zend.com (Dmitry Stogov) Lukas Kahwe Smith wrote: > > On 19.03.2009, at 20:37, Rasmus Lerdorf wrote: > >> So, what is the final conclusion on this one? Are we at a combination >> of Matt's and Dmitry's patches here? >> >> I think we definitely need to fix this even in the 5.2 branch and get it >> back to 5.1.x and earlier behavior. I consider it a bug that: >> >> $arr[3500000000] = 'blah'; >> print_r($arr); >> >> results in: >> >> [-2147483648] => blah >> >> if someone has written brand new 5.2-specific code that relies on this >> weird behavior, then we will just have to bite the bullet and break that >> code. It is way more likely that people are relying on the earlier >> behavior and will end up with subtle problems in 5.2. I just had >> someone at Yahoo get bitten by this when they upgraded from 5.1.x to >> 5.2.x. > > > If I understood it properly, the issue Matt/Dmitry are working on is > something else. So where do we stand on the issue Rasmus's notes (is > there a ticket for this one already)? It's related to another Matt's proposal which cares about float to long conversion. Matt, what will we get with your patch and code above? [LONG_MAX] => blah? Thanks. Dmitry. > regards, > Lukas Kahwe Smith > mls@pooteeweet.org > > >