mirror of
https://github.com/php/php-src.git
synced 2025-01-24 20:53:37 +08:00
test case for bug #26973
This commit is contained in:
parent
21d5052f70
commit
d7a54202d8
20
ext/standard/tests/strings/bug26973.phpt
Normal file
20
ext/standard/tests/strings/bug26973.phpt
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user