diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2010-08-16 20:56:00 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-08-16 20:56:00 +0000 |
commit | cee97080d1f5c7469d4f877698f91ef9f97a3199 (patch) | |
tree | 29462decf79500720c4d15dc2a4361da3d4a0fac /run-tests.php | |
parent | c204922c7f90f2c9ebde583070080b5e3f25edfa (diff) | |
download | php-git-cee97080d1f5c7469d4f877698f91ef9f97a3199.tar.gz |
Fixed bug #50836 (run_tests.php alerts syntax errors while testing session)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 8d62de7163..cdcd674ed8 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2161,7 +2161,17 @@ function settings2params(&$ini_settings) $settings .= " -d \"$name=$val\""; } } else { - $value = addslashes($value); + if (substr(PHP_OS, 0, 3) == "WIN" && !empty($value) && $value{0} == '"') { + $len = strlen($value); + + if ($value{$len - 1} == '"') { + $value{0} = "'"; + $value{$len - 1} = "'"; + } + } else { + $value = addslashes($value); + } + $settings .= " -d \"$name=$value\""; } } |