summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-26 15:05:38 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-26 15:05:38 +0000
commit537900c8e82984990ac3344e95089491a496ecbb (patch)
tree80d2fb30d84b64a3644d91c7665205a485fa71c3
parent8b35266a350fcd77d246af30c890a28d78d2c7cb (diff)
downloadphp-git-537900c8e82984990ac3344e95089491a496ecbb.tar.gz
add new test for recently fixed bug
-rw-r--r--ext/standard/tests/general_functions/bug27678.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/bug27678.phpt b/ext/standard/tests/general_functions/bug27678.phpt
new file mode 100644
index 0000000000..ec9cf93cf7
--- /dev/null
+++ b/ext/standard/tests/general_functions/bug27678.phpt
@@ -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