Re: ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev
| From: | Sebastian Nohn | Date: | Mon, 16 Apr 2007 08:32:31 +0000 |
| Subject: | Re: ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev | ||
| References: | 1 2 3 4 | Groups: | php.internals php.qa |
| Request: | Send a blank email to internals+get-28852@lists.php.net to get a copy of this message | ||
On Mon, April 16, 2007 10:10 am, Antony Dovgal wrote:
> On 04/15/2007 11:05 AM, Sebastian Nohn wrote:
>> <?php
>> $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