php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22016 Different presentation of floats after serialize/unserialize
Submitted: 2003-02-02 14:46 UTC Modified: 2003-05-24 09:18 UTC
From: k.schroeder@php.net Assigned: helly (profile)
Status: Wont fix Package: Strings related
PHP Version: 4CVS-2003-02-02 (stable) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: k.schroeder@php.net
New email:
PHP Version: OS:

 

 [2003-02-02 14:46 UTC] 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;
================================================================================

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-02 14:58 UTC] derick@php.net
It's not really *wrong*, it's just different on windows.
 [2003-05-24 09:18 UTC] helly@php.net
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...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 15:01:27 2024 UTC