| Dmitry Stogov 2007-04-17, 3:57 am |
| It is bad practice to use echo $float or var_dump($float)
because they depends on php.ini settings.
You should use printf() of number_format() for deterministic result.
The float formatting algorithms were changed because of
licensing issues and new ones are not 100% compatible with
previous ones.
Thanks. Dmitry.
> -----Original Message-----
> From: Thomas Weidner [mailto:thomas.weidner@gmx.at]
> Sent: Monday, April 16, 2007 9:57 PM
> To: Sebastian Nohn; Antony Dovgal
> Cc: Sebastian Nohn; Zend Framework General; ilia@php.net;
> php-qa@lists.php.net; internals@lists.php.net
> Subject: [PHP-DEV] Re: [fw-general] Re: [PHP-DEV] ZF 0.8.0
> Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev
>
>
> Sebastian,
>
> it should also be mentioned that when you are refferring to a
> test within ZF
> you should always look
> against the latest version of ZF.
>
> Since 0.8 I've fixed several issues for the I18N core and
> about 2000 lines
> of code have changed only for I18N which you are referring with
> Zend_Date_Dateobject-Tests.
>
> Independent on why this failure is there I also have to
> mention that I think
> that we will not fix issues within ZF which are raised due to the
> development tree of a php version. If php 5.2.2 is released
> and we have an
> issue with it we will fix it, but as this php version will
> probably be
> changed until it's release it would be nonsense to fix bugs
> which may be not
> in there when the new version of php is released.
>
> But keep your good work going... you've already found some
> nasty bugs which
> have been fixed ;-)
>
> Greetings
> Thomas
> I18N Team Leader for the Zend Framework
>
>
> ----- Original Message -----
> From: "Sebastian Nohn" <sebastian@nohn.net>
> To: "Antony Dovgal" <antony@zend.com>
> Cc: "Sebastian Nohn" <sebastian@nohn.net>; "Zend Framework General"
> <fw-general@lists.zend.com>; <ilia@php.net>; <php-qa@lists.php.net>;
> <internals@lists.php.net>
> Sent: Monday, April 16, 2007 10:32 AM
> Subject: [fw-general] Re: [PHP-DEV] ZF 0.8.0 Unit Tests
> behaving different
> on PHP 5.2.1 and PHP 5.2.2-dev
>
>
> between 5.2.1
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
|