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

diff --git a/ext/standard/tests/serialize/bug23298.phpt b/ext/standard/tests/serialize/bug23298.phpt
new file mode 100644 (file)
index 0000000..5d1931b
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #23298 (serialize() and floats/doubles)
+--FILE--
+<?php 
+       ini_set('precision', 12);
+       $foo = 1.428571428571428647642857142;
+       $bar = unserialize(serialize($foo));
+       var_dump(($foo === $bar));
+?>
+--EXPECT--
+bool(true)