php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18654 unserialize can't handle float with E notation
Submitted: 2002-07-30 13:50 UTC Modified: 2003-03-09 18:41 UTC
Votes:3
Avg. Score:3.3 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: csollet at coleebris dot com Assigned:
Status: No Feedback Package: Variables related
PHP Version: 4.3.1-dev OS: Linux 2.2.16, Win 2000 server
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: csollet at coleebris dot com
New email:
PHP Version: OS:

 

 [2002-07-30 13:50 UTC] csollet at coleebris dot com
<?php

echo serialize(1E+30);
/* --> d:1E+30; */

echo unserialize(serialize(1E+30));
/* Notice: unserialize() failed at offset 0 of 8 bytes in bug_unserial.html on line 6 */

?>

Fail with php 4.3-CVS  too
Was working with 4.1.0  (untested with 4.1.1 -> 4.2.1)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 18:31 UTC] sniper@php.net
updated version. Same thing with 4.3.0-dev..

 [2002-08-19 15:55 UTC] sander@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-02-04 17:48 UTC] k.schroeder@php.net
ext\standard\tests\serialize\003.phpt failed on W2k server with latest php4-win32 snap:

---- 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

 [2003-03-09 18:41 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC