diff options
| author | Michael Wallner <mike@php.net> | 2006-01-11 15:19:52 +0000 |
|---|---|---|
| committer | Michael Wallner <mike@php.net> | 2006-01-11 15:19:52 +0000 |
| commit | 8f5005e4b6de94cb2bfda7646e480ee2c18cbbeb (patch) | |
| tree | 72089b531fd1cdea06bb02a3cb7b2a86cec3dc5b /run-tests.php | |
| parent | 6ba295f3111a7b9285f400b9539506f58d54dbd3 (diff) | |
| download | php-git-8f5005e4b6de94cb2bfda7646e480ee2c18cbbeb.tar.gz | |
MFH: fix CGI SAPI check on Windows
Diffstat (limited to 'run-tests.php')
| -rwxr-xr-x | run-tests.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index b858e372e1..b9924583f7 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1005,7 +1005,10 @@ TEST $file /* For GET/POST tests, check if cgi sapi is available and if it is, use it. */ if ((!empty($section_text['GET']) || !empty($section_text['POST']))) { - if (file_exists("./sapi/cgi/php")) { + if (!strncasecmp(PHP_OS, "win", 3) && file_exists(dirname($php) ."/php-cgi.exe")) { + $old_php = $php; + $php = realpath(dirname($php) ."/php-cgi.exe") .' -C '; + } elseif (file_exists("./sapi/cgi/php")) { $old_php = $php; $php = realpath("./sapi/cgi/php") . ' -C '; } else { |
