mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
- Add test for sprintf()'s zero'th argument
This commit is contained in:
parent
25b42ae3b6
commit
141e3d52f7
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ printf("printf test 26:%2\$d %1\$d\n", 1, 2);
|
|||
printf("printf test 27:%3\$d %d %d\n", 1, 2, 3);
|
||||
printf("printf test 28:%2\$02d %1\$2d\n", 1, 2);
|
||||
printf("printf test 29:%2\$-2d %1\$2d\n", 1, 2);
|
||||
print("printf test 30:"); printf("%0\$s", 1); print("x\n");
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
|
@ -72,3 +73,4 @@ printf test 26:2 1
|
|||
printf test 27:3 1 2
|
||||
printf test 28:02 1
|
||||
printf test 29:2 1
|
||||
printf test 30:x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue