Skip to content

Commit b39ffa3

Browse files
committed
merge 322758 (detect a php-cgi which is a sibling of php cli)
1 parent b61f335 commit b39ffa3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run-tests.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,9 @@ function run_test($php, $file, $env)
13571357
} else if (file_exists("./sapi/cgi/php-cgi")) {
13581358
$old_php = $php;
13591359
$php = realpath("./sapi/cgi/php-cgi") . ' -C ';
1360+
} else if (file_exists(dirname($php) . "/php-cgi")) {
1361+
$old_php = $php;
1362+
$php = realpath(dirname($php) . "/php-cgi") . ' -C ';
13601363
} else {
13611364
show_result('SKIP', $tested, $tested_file, "reason: CGI not available");
13621365
if ($JUNIT) {

0 commit comments

Comments
 (0)