Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14503 invoked by uid 1010); 16 Apr 2007 08:10:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14488 invoked from network); 16 Apr 2007 08:10:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2007 08:10:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:17771] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/13-18278-A8F23264 for ; Mon, 16 Apr 2007 04:10:52 -0400 Received: (qmail 2946 invoked from network); 16 Apr 2007 08:10:47 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 16 Apr 2007 08:10:47 -0000 Message-ID: <46232F84.70603@zend.com> Date: Mon, 16 Apr 2007 12:10:44 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Sebastian Nohn CC: Zend Framework General , ilia@php.net, php-qa@lists.php.net, internals@lists.php.net References: <46210672.2010804@nohn.net> <46211D80.8050609@zend.com> <1956.84.63.50.23.1176620736.squirrel@ssl.nohn.org> In-Reply-To: <1956.84.63.50.23.1176620736.squirrel@ssl.nohn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev From: antony@zend.com (Antony Dovgal) 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". Both options looks ok to me, but we need to decide which one is the best. I can find pros/cons for both options myself and it doesn't matter for me which one is chosen, though somebody might. I remember asking people on the channel and the most popular answer was "both are legal and look ok". Opinions? -- Wbr, Antony Dovgal