summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2008-09-30 13:21:48 +0000
committerRob Richards <rrichards@php.net>2008-09-30 13:21:48 +0000
commitdb5da11f8a6fc2426536d9359abbde4a08033283 (patch)
treee50376ebf4c17f5c0827153114d4fa3990b440fa /run-tests.php
parent14982115cd1f29129e5520de99be5a42f6a9fd30 (diff)
downloadphp-git-db5da11f8a6fc2426536d9359abbde4a08033283.tar.gz
MFH: Windows requires SystemRoot env var to run tests
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index 814f36ce49..a293cdb28e 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -111,6 +111,9 @@ SAFE_MODE_WARNING;
}
$environment = isset($_ENV) ? $_ENV : array();
+if ((substr(PHP_OS, 0, 3) == "WIN") && empty($environment["SystemRoot"])) {
+ $environment["SystemRoot"] = getenv("SystemRoot");
+}
// Don't ever guess at the PHP executable location.
// Require the explicit specification.