]> granicus.if.org Git - php/commitdiff
- ws
authorMichael Wallner <mike@php.net>
Wed, 11 Jan 2006 15:18:58 +0000 (15:18 +0000)
committerMichael Wallner <mike@php.net>
Wed, 11 Jan 2006 15:18:58 +0000 (15:18 +0000)
run-tests.php

index 3b0da78e1ce3047ce50e08a40e51f4fa5703515d..065c12410e4c1ada582557dae51f9df55fc5fa7a 100755 (executable)
@@ -1047,10 +1047,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 (!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")) {
+               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 {