From: SVN Migration Date: Sat, 27 Mar 2004 00:50:42 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.6RC1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bf404dbeb2be35c824865f7220e1dae425209a8;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/math/bug27646.phpt b/ext/standard/tests/math/bug27646.phpt new file mode 100755 index 0000000000..2df6d8f37a --- /dev/null +++ b/ext/standard/tests/math/bug27646.phpt @@ -0,0 +1,47 @@ +--TEST-- +Bug #27646 (Cannot serialize/unserialize non-finite numeric values) +--FILE-- + +--EXPECTF-- +float(1%f) +string(%d) "d:1%s;" +float(1%f) +float(-1%f) +string(%d) "d:-1%s;" +float(-1%f) +float(-INF) +string(7) "d:-INF;" +float(-INF) +float(INF) +string(6) "d:INF;" +float(INF) +float(NAN) +string(6) "d:NAN;" +float(NAN)