ID:               46376
 Updated by:       [EMAIL PROTECTED]
 Reported By:      s6urik at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux (Amazon EC2)
 PHP Version:      5.2.6
 New Comment:

Works fine in sane environment using latest CVS snapshot of PHP_5_2,
PHP_5_3 and HEAD.


Previous Comments:
------------------------------------------------------------------------

[2008-10-24 10:29:10] s6urik at gmail dot com

Description:
------------
Result of expression "0.01 + 0.09" is "float(0.0:)", yes, zero dot zero
colon. Though "0.1 * 0.1 + 0.9" returns "float(0.1)" as it should, so
internally float looks to be stored correctly.

This bug appears only in Amazon EC2 virtual hosting environment:
  Instance Type: Small Instance
  Kernel: Linux 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008
i686 GNU/Linux
  Tested PHP versions: 5.2.4, 5.2.6

PHP 5.3.0alpha3-dev is not affected.

Reproduce code:
---------------
var_dump(0.01 + 0.09)

Expected result:
----------------
float(0.1)

Actual result:
--------------
float(0.0:)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46376&edit=1

Reply via email to