ID:               24063
 User updated by:  jparneodo at yahoo dot fr
 Reported By:      jparneodo at yahoo dot fr
-Status:           Closed
+Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: RH7.2
-PHP Version:      4.3.3RC2-dev
+PHP Version:      4.3.3RC3
 Assigned To:      helly
 New Comment:

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;


Previous Comments:
------------------------------------------------------------------------

[2003-07-30 14:52:22] jeff at tmtrading dot com

Bug still exists:

http://snaps.php.net/php4-STABLE-200307301730.tar.bz2

---- EXPECTED OUTPUT
string(9) "d:1.0E-6;"
float(1.0E-6)
---- ACTUAL OUTPUT
Notice: unserialize(): Error at offset 0 of 9 bytes in
~/php4-STABLE-200307301730/ext/standard
/tests/serialize/bug24063.php on line 4
string(9) "d::.0E-7;"
bool(false)
---- FAILED

------------------------------------------------------------------------

[2003-06-30 12:37:24] [EMAIL PROTECTED]

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.

The output of unserialize($s); with latest CVS is
float(1.0E-6), which is the correct output.

------------------------------------------------------------------------

[2003-06-30 12:33:00] jparneodo at yahoo dot fr

$f=1.0e-6;
$s=serialize($f);
$ff=unserialize($s);

// Output with php4-STABLE-200306301530/sapi/cli/php
4.3.3RC2-dev
Notice: unserialize(): Error at offset 0 of 9 bytes in - on line 5

d::.0E-7;
// Please compare output with 4.3.3RC1

------------------------------------------------------------------------

[2003-06-29 20:05:27] [EMAIL PROTECTED]

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-06-26 12:56:27] [EMAIL PROTECTED]

(that was for Marcus :)


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/24063

-- 
Edit this bug report at http://bugs.php.net/?id=24063&edit=1

Reply via email to