]> 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 May 2003 13:48:15 +0000 (13:48 +0000)
committerSVN Migration <svn@php.net>
Fri, 30 May 2003 13:48:15 +0000 (13:48 +0000)
ext/standard/tests/strings/bug23894.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug23894.phpt b/ext/standard/tests/strings/bug23894.phpt
new file mode 100644 (file)
index 0000000..9cc0316
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+Bug #23894 (sprintf() decimal specifiers problem)
+--FILE--
+<?php
+$a = -12.3456;
+$test = sprintf("%04d", $a);
+var_dump($test, bin2hex($test));
+$test = sprintf("% 13u", $a);
+var_dump($test, bin2hex($test));
+?>
+--EXPECT--
+string(4) "-012"
+string(8) "2d303132"
+string(13) "   4294967284"
+string(26) "20202034323934393637323834"