diff options
author | rjhdby <andrewgrom@rambler.ru> | 2019-03-13 13:51:31 +0300 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-19 10:06:10 +0200 |
commit | d574df63dc375f5fc9202ce5afde23f866b6450a (patch) | |
tree | 5fd118cf3045f46cef4de60235a6bc9e980ac4a9 /run-tests.php | |
parent | d5943f5a11976ffbe89b9634b86d9a0b2adda30a (diff) | |
download | php-git-d574df63dc375f5fc9202ce5afde23f866b6450a.tar.gz |
Deprecate alternative array access syntax
RFC: https://wiki.php.net/rfc/deprecate_curly_braces_array_access
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); |