From 82dc9a31c335d8cf7aff68d76698bc3d24f761f8 Mon Sep 17 00:00:00 2001 From: kharhamel Date: Tue, 15 Oct 2019 17:51:39 +0200 Subject: Convert warnings to Errors in sprintf() functions Closes GH-4837. --- tests/strings/002.phpt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/strings') diff --git a/tests/strings/002.phpt b/tests/strings/002.phpt index 5e82091088..a43a68c88b 100644 --- a/tests/strings/002.phpt +++ b/tests/strings/002.phpt @@ -2,7 +2,6 @@ Formatted print functions --FILE-- getMessage()."\n"); +} vprintf("vprintf test 1:%2\$-2d %1\$2d\n", array(1, 2)); @@ -79,5 +82,5 @@ 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 +printf test 30:Error found: Argument number must be greater than zero vprintf test 1:2 1 -- cgit v1.2.1