#22016 [Opn->WFx]: Different presentation of floats after serialize/unserialize
| From: | helly@php.net | Date: | Sat, 24 May 2003 14:18:24 +0000 |
| Subject: | #22016 [Opn->WFx]: Different presentation of floats after serialize/unserialize | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40347@lists.php.net to get a copy of this message | ||
ID: 22016
Updated by: helly@php.net
Reported By: k.schroeder@php.net
-Status: Open
+Status: Wont fix
Bug Type: Strings related
Operating System: Windows 2000 Server
PHP Version: 4CVS-2003-02-02 (stable)
-Assigned To:
+Assigned To: helly
New Comment:
Actually there are some differences left and we may eventually do some
more work here. However the current state is that writing and reading
results in the same value even though the representation may differ.
Also this is dependent on some system libraries...
Previous Comments:
------------------------------------------------------------------------
[2003-02-02 14:58:55] derick@php.net
It's not really *wrong*, it's just different on windows.
------------------------------------------------------------------------
[2003-02-02 14:46:31] k.schroeder@php.net
ext/standard/tests/serialize/003.phpt failed on W2k server:
---- EXPECTED OUTPUT
d:100;
float(100)
d:5.2E+25;
float(5.2E+25)
d:8.529E-22;
float(8.529E-22)
d:9E-09;
float(9.E-9)
---- ACTUAL OUTPUT
d:100;
float(100)
d:5.2E+025;
float(5.2E+25)
d:8.529E-022;
float(8.529E-22)
d:9E-009;
float(9.E-9)
---- FAILED
================================================================================
004- d:5.2E+25;
004+ d:5.2E+025;
007- d:8.529E-22;
007+ d:8.529E-022;
010- d:9E-09;
010+ d:9E-009;
================================================================================
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22016&edit=1