diff options
author | Rob Richards <rrichards@php.net> | 2008-09-30 13:21:48 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2008-09-30 13:21:48 +0000 |
commit | db5da11f8a6fc2426536d9359abbde4a08033283 (patch) | |
tree | e50376ebf4c17f5c0827153114d4fa3990b440fa /run-tests.php | |
parent | 14982115cd1f29129e5520de99be5a42f6a9fd30 (diff) | |
download | php-git-db5da11f8a6fc2426536d9359abbde4a08033283.tar.gz |
MFH: Windows requires SystemRoot env var to run tests
Diffstat (limited to 'run-tests.php')
-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. |