From: Antony Dovgal Date: Sun, 27 May 2007 19:22:24 +0000 (+0000) Subject: "sapi/cgi/php" -> "sapi/cgi/php-cgi" X-Git-Tag: RELEASE_1_4~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c554b2fb4179e2babf36add94d8dab7bb0a89d71;p=php "sapi/cgi/php" -> "sapi/cgi/php-cgi" --- diff --git a/run-tests.php b/run-tests.php index 863233e6b9..e343a2b76b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -105,7 +105,7 @@ if (getenv('TEST_PHP_EXECUTABLE')) { if (getenv('TEST_PHP_CGI_EXECUTABLE')) { $php_cgi = getenv('TEST_PHP_CGI_EXECUTABLE'); if ($php_cgi=='auto') { - $php_cgi = $cwd.'/sapi/cgi/php'; + $php_cgi = $cwd.'/sapi/cgi/php-cgi'; putenv("TEST_PHP_CGI_EXECUTABLE=$php_cgi"); } $environment['TEST_PHP_CGI_EXECUTABLE'] = $php_cgi; @@ -1078,9 +1078,9 @@ TEST $file 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")) { + } elseif (file_exists("./sapi/cgi/php-cgi")) { $old_php = $php; - $php = realpath("./sapi/cgi/php") . ' -C '; + $php = realpath("./sapi/cgi/php-cgi") . ' -C '; } else { show_result("SKIP", $tested, $tested_file, $unicode_semantics, "reason: CGI not available"); return 'SKIPPED'; diff --git a/sapi/cgi/tests/include.inc b/sapi/cgi/tests/include.inc index 2a87321499..11bf8f3b81 100644 --- a/sapi/cgi/tests/include.inc +++ b/sapi/cgi/tests/include.inc @@ -30,9 +30,9 @@ function get_cgi_path() /* {{{ */ } } - if ($php_path && is_dir($php_path) && file_exists($php_path."/cgi/php") && is_executable($php_path."/cgi/php")) { + if ($php_path && is_dir($php_path) && file_exists($php_path."/cgi/php-cgi") && is_executable($php_path."/cgi/php-cgi")) { /* gotcha */ - return $php_path."/cgi/php"; + return $php_path."/cgi/php-cgi"; } return false; }