Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43089 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99415 invoked from network); 18 Feb 2009 11:28:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2009 11:28:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=zoe.slattery@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zoe.slattery@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.182.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: zoe.slattery@googlemail.com X-Host-Fingerprint: 64.233.182.188 nf-out-0910.google.com Received: from [64.233.182.188] ([64.233.182.188:59732] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/C0-29866-CD0FB994 for ; Wed, 18 Feb 2009 06:28:29 -0500 Received: by nf-out-0910.google.com with SMTP id d3so348324nfc.13 for ; Wed, 18 Feb 2009 03:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=EiP2nubzUylSWLPqcF0J+WOT78iH/7pBacm3WfeTJwk=; b=uZTm/mwzXR93bMF1EC1dBy+QweKjKXkbYCwE+8U+x3ublsCTaVZBkW2gbr4Q4uUudr 5qntEnf9HMzHK/WosFClFVNqIifS+R7aVFBr149lVDYmcu9KHJlu7Ml0lRLpTE8RPDxz FEkYOR1Qut84SHzdVNZVf1h4C2znaoy8UDOKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ZQouSoFQc+2MUGTuXgR+gHzgbQlq1UNS35oNq3jIDz5ujuDtqtepm13F8TzsSqAcy+ swdb8SJgad83E/PSo2gLv0/lvbXesrOg8AKhqK8xtPSBlTjBhlWhUwTUNgvuHbtde1Q4 sCYidR2SbOR3IyRMykrpjTwMi7TiDjWSPTfl0= Received: by 10.210.105.20 with SMTP id d20mr482415ebc.142.1234956506189; Wed, 18 Feb 2009 03:28:26 -0800 (PST) Received: from ?9.20.187.136? (blueice2n1.uk.ibm.com [195.212.29.75]) by mx.google.com with ESMTPS id 10sm2156379eyz.30.2009.02.18.03.28.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Feb 2009 03:28:24 -0800 (PST) Message-ID: <499BF0CF.3000108@googlemail.com> Date: Wed, 18 Feb 2009 11:28:15 +0000 User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Moriyoshi Koizumi CC: Ilia Alshanetsky , internals Mailing List , Dmitry Stogov References: <6D771262-F1BD-43B7-93FC-BF9D47D15F49@prohost.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Bug #46701 From: zoe.slattery@googlemail.com (zoe) Moriyoshi Koizumi wrote: > Please don't even think of backporting. This will definitely break a > lot of things, and this kind of thing must not be done in a minor > release. > > --snip-- >>>> I guess the patch relies on the 5.3's DVAL_TO_LVAL behavior that was >>>> changed by the fix for bug #42868, right? >>>> If so, this patch shouldn't be MFH'ed as the #42868 patch was not >>>> merged although I didn't remember any discussion on this. >>>> >>>> See also: http://marc.info/?l=php-internals&m=120799720922202&w=2 >>>> >>>> Hey all I'm sorry - I should have replied to this before since I was responsible for raising #42868. I didn't do a good job at explaining what the issue was in that bug, mainly because I didn't know what it was when I started. The central problem is that PHP's behaviour on casting double to int defaults to whatever the underlying C environment does. On Windows and Linux (all of the versions that I looked at) this turns out to be a simple truncation of the last 32 bits. Unfortunately the C behaviour is 'undefined' (Kernigan and Ritchie, page 197, A6.3). The issue that I found in #42868 was that on the Mac the casting behaviour is completely different so many of the PHP tests failed. I believe that PHP should behave in a platform independent way - that is what the fix to #42868 achieves. It is also fair to say that any applications that depend on the overflow behaviour in PHP 5.2 cannot be guaranteed to run on any platform. Zoe >>>> Regards, >>>> Moriyoshi >>>> >>>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> Ilia Alshanetsky >> >> >> >> >> >> > >