From: Rob Richards Date: Tue, 30 Sep 2008 13:21:17 +0000 (+0000) Subject: Windows requires SystemRoot env var to run tests X-Git-Tag: BEFORE_HEAD_NS_CHANGE~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c830929da209043ba8a3050cbc6b34b8ce23c05;p=php Windows requires SystemRoot env var to run tests --- diff --git a/run-tests.php b/run-tests.php index 7f1435e29e..423ede7cd3 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.