File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
serialize /
bug24063.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>