diff options
-rwxr-xr-x | run-tests.php | 3 |
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. |