diff options
author | Antony Dovgal <tony2001@php.net> | 2005-12-26 15:05:38 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-12-26 15:05:38 +0000 |
commit | 537900c8e82984990ac3344e95089491a496ecbb (patch) | |
tree | 80d2fb30d84b64a3644d91c7665205a485fa71c3 | |
parent | 8b35266a350fcd77d246af30c890a28d78d2c7cb (diff) | |
download | php-git-537900c8e82984990ac3344e95089491a496ecbb.tar.gz |
add new test for recently fixed bug
-rw-r--r-- | ext/standard/tests/general_functions/bug27678.phpt | 14 |
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 |