1--TEST--
2Bug #69751: Change Error message of sprintf/printf for missing/typo position specifier.
3--FILE--
4<?php
5
6try {
7    sprintf('%$s, %2$s %1$s', "a", "b");
8} catch (ValueError $e) {
9    echo $e->getMessage(), "\n";
10}
11
12try {
13    sprintf('%3$s, %2$s %1$s', "a", "b");
14} catch (ArgumentCountError $e) {
15    echo $e->getMessage(), "\n";
16}
17
18try {
19    sprintf('%2147483648$s, %2$s %1$s', "a", "b");
20} catch (ValueError $e) {
21    echo $e->getMessage(), "\n";
22}
23
24?>
25--EXPECTF--
26Argument number specifier must be greater than zero and less than %d
274 arguments are required, 3 given
28Argument number specifier must be greater than zero and less than %d
29