Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #24063 (serialize() missing 0 after the . on scientific notation) --INI-- ser..

Decoded Output download

--TEST--
Bug #24063 (serialize() missing 0 after the . on scientific notation)
--INI--
serialize_precision=100
precision=12
--FILE--
<?php
$v = 1;
for ($i = 1; $i < 10; $i++) {
    $v /= 10;
    echo "{$v} ".unserialize(serialize($v))."
";
}
?>
--EXPECT--
0.1 0.1
0.01 0.01
0.001 0.001
0.0001 0.0001
1.0E-5 1.0E-5
1.0E-6 1.0E-6
1.0E-7 1.0E-7
1.0E-8 1.0E-8
1.0E-9 1.0E-9

Did this file decode correctly?

Original Code

--TEST--
Bug #24063 (serialize() missing 0 after the . on scientific notation)
--INI--
serialize_precision=100
precision=12
--FILE--
<?php
$v = 1;
for ($i = 1; $i < 10; $i++) {
    $v /= 10;
    echo "{$v} ".unserialize(serialize($v))."\n";
}
?>
--EXPECT--
0.1 0.1
0.01 0.01
0.001 0.001
0.0001 0.0001
1.0E-5 1.0E-5
1.0E-6 1.0E-6
1.0E-7 1.0E-7
1.0E-8 1.0E-8
1.0E-9 1.0E-9

Function Calls

None

Variables

$i 1
$v 1

Stats

MD5 e883c907b2ec2af9faa6ed8bde7f9171
Eval Count 0
Decode Time 75 ms