]> granicus.if.org Git - php/commit
Fix number of required parameters in printf
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 21 Apr 2020 15:00:12 +0000 (17:00 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 21 Apr 2020 15:01:47 +0000 (17:01 +0200)
commit40ceafc7f26c134f457b9e26105d904e10755771
treef39368e521221082313ddda4dea091cb1e7af50b
parent94fba0262136eb09e8b745ecec3f50218cef07bb
Fix number of required parameters in printf

If n$ references are involved, the maximum argnum referenced may
not the one at the end. Store it explicitly.
ext/standard/formatted_print.c
ext/standard/tests/strings/sprintf_error.phpt