From 9cf8facc6564ee97322c31fdbbec73516c51d701 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 22 Nov 2019 13:40:58 +0100 Subject: [PATCH] parse_str() without 2nd argument is deprecated As of PHP 7.2.0, calling parse_str() with only one parameter is deprecated, and as of PHP 8.0.0, this even errors. To avoid optimizing error paths, we add a dummy argument, which otherwise does not affect the execution. --- standard_calls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard_calls.php b/standard_calls.php index c9d76a8..4c9db36 100644 --- a/standard_calls.php +++ b/standard_calls.php @@ -104,7 +104,7 @@ function run_standard_calls($STANDARD_CALL_IT) { array_walk($test_array, 'do_nothing'); krsort($test_array); ksort($test_array); - parse_str($var1); + parse_str($var1, $dummy); end($test_array); reset($test_array); array_shift($test_array);