Re: 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
| From: | Lukas Kahwe Smith | Date: | Tue, 17 Apr 2007 08:16:39 +0000 |
| Subject: | Re: 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 | ||
| References: | 1 | Groups: | php.internals php.qa |
| Request: | Send a blank email to php-qa+get-28189@lists.php.net to get a copy of this message | ||
Dmitry Stogov wrote:
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.Was this documented in the upgrading guide? regards, Lukas