]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Fri, 30 Apr 2004 13:26:02 +0000 (13:26 +0000)
committerSVN Migration <svn@php.net>
Fri, 30 Apr 2004 13:26:02 +0000 (13:26 +0000)
ext/standard/tests/math/bug28228.phpt [new file with mode: 0755]

diff --git a/ext/standard/tests/math/bug28228.phpt b/ext/standard/tests/math/bug28228.phpt
new file mode 100755 (executable)
index 0000000..3d6cebc
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+Bug #28228 (number_format() does not allow empty decimal separator)
+--FILE--
+<?php
+echo number_format(1234.5678, 4, '', '') . "\n";
+echo number_format(1234.5678, 4, NULL, ',') . "\n";
+echo number_format(1234.5678, 4, 0, ',') . "\n";
+echo number_format(1234.5678, 4);
+?>
+--EXPECT--
+12345678
+12,345,678
+1,23405678
+1,234.5678