#18654 [Opn->Fbk]: unserialize can't handle float with E notation
| From: | iliaa@php.net | Date: | Thu, 27 Feb 2003 17:06:36 +0000 |
| Subject: | #18654 [Opn->Fbk]: unserialize can't handle float with E notation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-34459@lists.php.net to get a copy of this message | ||
ID: 18654
Updated by: iliaa@php.net
Reported By: csollet at coleebris dot com
-Status: Open
+Status: Feedback
Bug Type: Variables related
Operating System: Linux 2.2.16, Win 2000 server
PHP Version: 4.3.1-dev
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-02-04 17:48:36] 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
------------------------------------------------------------------------
[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 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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18654&edit=1