summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2010-08-16 20:56:00 +0000
committerKalle Sommer Nielsen <kalle@php.net>2010-08-16 20:56:00 +0000
commitcee97080d1f5c7469d4f877698f91ef9f97a3199 (patch)
tree29462decf79500720c4d15dc2a4361da3d4a0fac /run-tests.php
parentc204922c7f90f2c9ebde583070080b5e3f25edfa (diff)
downloadphp-git-cee97080d1f5c7469d4f877698f91ef9f97a3199.tar.gz
Fixed bug #50836 (run_tests.php alerts syntax errors while testing session)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php12
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\"";
}
}