]> granicus.if.org Git - php/commitdiff
* add the directory where php.exe was found to PATH to help Windows
authorStig Bakken <ssb@php.net>
Mon, 27 Aug 2001 20:29:33 +0000 (20:29 +0000)
committerStig Bakken <ssb@php.net>
Mon, 27 Aug 2001 20:29:33 +0000 (20:29 +0000)
  find its DLLs

run-tests.php

index 1cc4592c2b4d581ff446b67a8c7a0ad2cf245ed3..43db6ca6c72cd3a4458663a3f7b8850f8dae176f 100755 (executable)
@@ -168,6 +168,11 @@ function initialize()
         dowriteln("available in the PATH environment variable.");
         exit;
     }
+    if ($windows_p) {
+       // modify path to help Windows find DLL files
+       $path = dirname($php) . ";" . getenv("PATH");
+       setenv("PATH={$path}");
+    }
 
     create_compiled_in_modules_list();