]> granicus.if.org Git - php/commitdiff
MFH: Windows requires SystemRoot env var to run tests
authorRob Richards <rrichards@php.net>
Tue, 30 Sep 2008 13:21:48 +0000 (13:21 +0000)
committerRob Richards <rrichards@php.net>
Tue, 30 Sep 2008 13:21:48 +0000 (13:21 +0000)
run-tests.php

index 814f36ce4902b69469b02327e49a633fc582dc79..a293cdb28e9ccd7c7c18c4d23a9c9f745dcb4899 100755 (executable)
@@ -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.