]> granicus.if.org Git - php/commitdiff
add new test
authorAntony Dovgal <tony2001@php.net>
Mon, 26 Dec 2005 15:15:10 +0000 (15:15 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 26 Dec 2005 15:15:10 +0000 (15:15 +0000)
ext/standard/tests/general_functions/bug27678.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/general_functions/bug27678.phpt b/ext/standard/tests/general_functions/bug27678.phpt
new file mode 100644 (file)
index 0000000..ec9cf93
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+bug #27678 (number_format() crashes with large numbers)
+--FILE--
+<?php
+
+number_format(1e80, 0, '', ' ');
+number_format(1e300, 0, '', ' ');
+number_format(1e320, 0, '', ' ');
+number_format(1e1000, 0, '', ' ');
+
+echo "Done\n";
+?>
+--EXPECT--     
+Done