]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Mon, 30 Jun 2003 01:03:22 +0000 (01:03 +0000)
committerSVN Migration <svn@php.net>
Mon, 30 Jun 2003 01:03:22 +0000 (01:03 +0000)
ext/standard/tests/serialize/bug24063.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/serialize/bug24063.phpt b/ext/standard/tests/serialize/bug24063.phpt
new file mode 100644 (file)
index 0000000..3d17299
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+Bug #24063 (serialize() missing 0 after the . on scientific notation)
+--INI--
+serialize_precision=100
+precision=12
+--FILE--
+<?php 
+$f = 1.0e-6;
+$s = serialize($f);
+var_dump($s, unserialize($s));
+?>
+--EXPECT--
+string(9) "d:1.0E-6;"
+float(1.0E-6)