Newsgroups: php.internals,php.qa Path: news.php.net Xref: news.php.net php.internals:28852 php.qa:28182 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21905 invoked by uid 1010); 16 Apr 2007 08:31:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21873 invoked from network); 16 Apr 2007 08:31:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2007 08:31:39 -0000 Authentication-Results: pb1.pair.com header.from=sebastian@nohn.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sebastian@nohn.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nohn.net from 85.214.77.40 cause and error) X-PHP-List-Original-Sender: sebastian@nohn.net X-Host-Fingerprint: 85.214.77.40 bxpcsr02.nohn.net Linux 2.5 (sometimes 2.4) (4) Received: from [85.214.77.40] ([85.214.77.40:47898] helo=bxpcsr02.nohn.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/14-18278-86433264 for ; Mon, 16 Apr 2007 04:31:38 -0400 Received: from localhost (localhost [127.0.0.1]) by bxpcsr02.nohn.net (Postfix) with ESMTP id 76A78938002; Mon, 16 Apr 2007 10:32:31 +0200 (CEST) Received: from bxpcsr02.nohn.net ([127.0.0.1]) by localhost (h939937.serverkompetenz.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08006-08; Mon, 16 Apr 2007 10:32:31 +0200 (CEST) Received: from ssl.nohn.org (localhost [127.0.0.1]) by bxpcsr02.nohn.net (Postfix) with ESMTP id 4E7D3938001; Mon, 16 Apr 2007 10:32:31 +0200 (CEST) Received: from 195.227.76.130 (SquirrelMail authenticated user sebastian@nohn.net) by ssl.nohn.org with HTTP; Mon, 16 Apr 2007 10:32:31 +0200 (CEST) Message-ID: <1450.195.227.76.130.1176712351.squirrel@ssl.nohn.org> In-Reply-To: <46232F84.70603@zend.com> References: <46210672.2010804@nohn.net> <46211D80.8050609@zend.com> <1956.84.63.50.23.1176620736.squirrel@ssl.nohn.org> <46232F84.70603@zend.com> Date: Mon, 16 Apr 2007 10:32:31 +0200 (CEST) To: "Antony Dovgal" Cc: "Sebastian Nohn" , "Zend Framework General" , ilia@php.net, php-qa@lists.php.net, internals@lists.php.net User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev From: sebastian@nohn.net ("Sebastian Nohn") On Mon, April 16, 2007 10:10 am, Antony Dovgal wrote: > On 04/15/2007 11:05 AM, Sebastian Nohn wrote: >> > $a = 6900000000; >> var_dump($a); >> $b = "A is: ".$a; >> var_dump($b); >> ?> >> >> 5.2.1 output is: >> >> float(6.9E+9) >> string(16) "A is: 6900000000" >> >> 5.2.2-dev output is: >> >> float(6.9E+9) >> string(12) "A is: 6.9E+9" > > Nice catch, thanks. > > What do you think is the most correct output for 1 000 000 000 000 000 > (with precision = 14)? > Versions <= 5.2.1 output "1E+15", 5.2.2 says "1.0E+15". Whatever is done, if the result is a different behaviour between 5.2.1 and 5.2.2, it needs to be documented in the change log / release notes. - Sebastian