Skip to content

Commit ea126c5

Browse files
committed
Fix EXTENSIONS for cgi tests
The extension information needs to be fetched using the cli binary, not the cgi binary.
1 parent 4083600 commit ea126c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: run-tests.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,7 @@ function run_test(string $php, $file, array $env): string
18511851

18521852
$temp_filenames = null;
18531853
$org_file = $file;
1854+
$orig_php = $php;
18541855

18551856
if (isset($env['TEST_PHP_CGI_EXECUTABLE'])) {
18561857
$php_cgi = $env['TEST_PHP_CGI_EXECUTABLE'];
@@ -2064,7 +2065,7 @@ function run_test(string $php, $file, array $env): string
20642065
settings2array($ini_overwrites, $ext_params);
20652066
$ext_params = settings2params($ext_params);
20662067
$extensions = preg_split("/[\n\r]+/", trim($test->getSection('EXTENSIONS')));
2067-
[$ext_dir, $loaded] = $skipCache->getExtensions("$php $pass_options $extra_options $ext_params $no_file_cache");
2068+
[$ext_dir, $loaded] = $skipCache->getExtensions("$orig_php $pass_options $extra_options $ext_params $no_file_cache");
20682069
$ext_prefix = IS_WINDOWS ? "php_" : "";
20692070
$missing = [];
20702071
foreach ($extensions as $req_ext) {

0 commit comments

Comments
 (0)