]> granicus.if.org Git - php/commitdiff
- Add test for sprintf()'s zero'th argument
authorDerick Rethans <derick@php.net>
Fri, 22 Mar 2002 09:09:36 +0000 (09:09 +0000)
committerDerick Rethans <derick@php.net>
Fri, 22 Mar 2002 09:09:36 +0000 (09:09 +0000)
tests/strings/002.phpt

index 195d3bd5e5e3f4dcc3e6fa725a6125cee3af6995..4b89506b7b95d2b6c924792217e4578113660352 100644 (file)
@@ -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