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

index 7f1435e29e5a7afae206036c15660a2ee1139f17..423ede7cd33f9f3c4c6c70e384f598cf89f5825c 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.