]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Wed, 21 Jan 2004 03:49:16 +0000 (03:49 +0000)
committerSVN Migration <svn@php.net>
Wed, 21 Jan 2004 03:49:16 +0000 (03:49 +0000)
ext/standard/tests/strings/bug26973.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug26973.phpt b/ext/standard/tests/strings/bug26973.phpt
new file mode 100644 (file)
index 0000000..a25b526
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+Bug #26973 (*printf() '+' modifier problem)
+--FILE--
+<?php
+
+printf("%+05d\n", 200);
+printf("%+05d\n", -200);
+printf("%+05f\n", 200);
+printf("%+05f\n", -200);
+printf("%+05u\n", 200);
+printf("%+05u\n", -200);
+
+?>
+--EXPECT--
++0200
+-0200
++0200.000000
+-0200.000000
+00200
+4294967096