From d574df63dc375f5fc9202ce5afde23f866b6450a Mon Sep 17 00:00:00 2001 From: rjhdby Date: Wed, 13 Mar 2019 13:51:31 +0300 Subject: Deprecate alternative array access syntax RFC: https://wiki.php.net/rfc/deprecate_curly_braces_array_access --- run-tests.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index 44cfd299bb..84dccd7380 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2944,12 +2944,12 @@ function settings2params($ini_settings) $settings .= " -d \"$name=$val\""; } } else { - if (substr(PHP_OS, 0, 3) == "WIN" && !empty($value) && $value{0} == '"') { + if (substr(PHP_OS, 0, 3) == "WIN" && !empty($value) && $value[0] == '"') { $len = strlen($value); - if ($value{$len - 1} == '"') { - $value{0} = "'"; - $value{$len - 1} = "'"; + if ($value[$len - 1] == '"') { + $value[0] = "'"; + $value[$len - 1] = "'"; } } else { $value = addslashes($value); -- cgit v1.2.1