Error at offset ... again
| Bug #24063 | Notice: unserialize(): Error at offset ... again | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-06-06 11:08 UTC | Modified: | 2003-08-08 16:25 UTC | ||
| From: | jparneodo at yahoo dot fr | Assigned: | helly (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 4.3.3RC3 | OS: | RH7.2 | ||
| Private report: | No | CVE-ID: | None | ||
[2003-06-06 11:08 UTC] jparneodo at yahoo dot fr
class C {
var $bad_1 = 1e-6; // Bug in unserialize
var $bad_2 = 1.0e-6; // Bug in unserialize
var $ok__1 = 1.1e-6;
var $ok__2 = 9e-7;
}
$c=new C();
$s=serialize($c);
$cc=unserialize($s);
/*
Values like 0.00001 (one)
seems to be fatal!
*/
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-06-06 14:36 UTC] sniper@php.net
[2003-06-09 03:50 UTC] jparneodo at yahoo dot fr
[2003-06-09 05:16 UTC] helly@php.net
[2003-06-09 05:34 UTC] jparneodo at yahoo dot fr
[2003-06-20 09:28 UTC] jparneodo at yahoo dot fr
[2003-06-29 20:05 UTC] iliaa@php.net
[2003-06-30 12:33 UTC] jparneodo at yahoo dot fr
[2003-06-30 12:37 UTC] iliaa@php.net
[2003-07-30 14:52 UTC] jeff at tmtrading dot com
[2003-08-08 02:58 UTC] jparneodo at yahoo dot fr
Test ext/standard/tests/serialize/bug24063.phpt failed Last correct release was 4.3.0 (4.3.1 never tested). All version after 4.3.0 have this bug The new function spprintf was introduced. (to be analysed) foreach(array(0.1,0.01,0.001,0.0001,0.00001,0.000001,0.0000001,0.00000001,0.000000001) as $v){ echo "\n$v: ".serialize($v); } 0.1: d:0.1; 0.01: d:0.01; 0.001: d:0.001; 0.0001: d:0.0001; 1E-05: d:1.0E-5; 1E-06: d::.0E-7; // BUG 1E-07: d::.0E-8; // BUG 1E-08: d:1.0E-8; 1E-09: d:1.0E-9;[2003-08-08 03:50 UTC] sniper@php.net
[2003-08-08 16:25 UTC] iliaa@php.net