diff options
author | Derick Rethans <derick@php.net> | 2002-03-22 09:09:36 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-03-22 09:09:36 +0000 |
commit | 141e3d52f745c670cb75fc90f90d0c9e6627e498 (patch) | |
tree | 285fe5f8d5b35bcb6c8da4cc3f05ea1d435d9dd1 /tests/strings | |
parent | 25b42ae3b64e90508711cd095e4d2f9fa8a55450 (diff) | |
download | php-git-141e3d52f745c670cb75fc90f90d0c9e6627e498.tar.gz |
- Add test for sprintf()'s zero'th argument
Diffstat (limited to 'tests/strings')
-rw-r--r-- | tests/strings/002.phpt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/strings/002.phpt b/tests/strings/002.phpt index 195d3bd5e5..4b89506b7b 100644 --- a/tests/strings/002.phpt +++ b/tests/strings/002.phpt @@ -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 |