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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 + 46 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 20 03:01:28 2024 UTC