#18654 [Csd->Opn]: unserialize can't handle float with E notation
| From: | k.schroeder@php.net | Date: | Tue, 04 Feb 2003 23:48:37 +0000 |
| Subject: | #18654 [Csd->Opn]: unserialize can't handle float with E notation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32148@lists.php.net to get a copy of this message | ||
ID: 18654
Updated by: k.schroeder@php.net
Reported By: csollet@coleebris.com
-Status: Closed
+Status: Open
Bug Type: Variables related
-Operating System: Linux 2.2.16
+Operating System: Linux 2.2.16, Win 2000 server
-PHP Version: 4.3.0-dev
+PHP Version: 4.3.1-dev
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-08-19 15:55:13] 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.
------------------------------------------------------------------------
[2002-07-31 18:31:47] sniper@php.net
updated version. Same thing with 4.3.0-dev..
------------------------------------------------------------------------
[2002-07-30 13:50:05] csollet@coleebris.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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18654&edit=1