]> granicus.if.org Git - php/commitdiff
Added test case for bug #22187.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 13 Feb 2003 19:07:20 +0000 (19:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 13 Feb 2003 19:07:20 +0000 (19:07 +0000)
ext/standard/tests/strings/bug22187.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug22187.phpt b/ext/standard/tests/strings/bug22187.phpt
new file mode 100644 (file)
index 0000000..dccaccc
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #22187 (possible crash in number_format() function)
+--FILE--
+<?php
+       var_dump(number_format(0.0001, 1));
+       var_dump(number_format(0.0001, 0));
+?>
+--EXPECT--
+string(3) "0.0"
+string(1) "0"