@@ -888,14 +888,16 @@ function write_information(): void
888
888
continue;
889
889
}
890
890
$ext = $matches[1];
891
- if (!in_array($ext, $exts) && !extension_loaded($ext) && @ dl($file)) {
891
+ if (!in_array($ext, $exts) && dl($file)) {
892
892
$exts[] = $ext;
893
893
}
894
894
}
895
895
echo implode(',', $exts);
896
896
?>
897
897
PHP);
898
898
$ exts_to_test = explode (', ' , `$ php $ pass_options $ info_params $ no_file_cache " $ info_file" `);
899
+ var_dump ('from dl... ' );
900
+ print_r ($ exts_to_test );
899
901
// check for extensions that need special handling and regenerate
900
902
$ info_params_ex = [
901
903
'session ' => ['session.auto_start=0 ' ],
@@ -1358,10 +1360,10 @@ function run_all_tests(array $test_files, array $env, $redir_tested = null): voi
1358
1360
}
1359
1361
1360
1362
/* Ignore -jN if there is only one file to analyze. */
1361
- if ($ workers !== null && count ($ test_files ) > 1 && !$ workerID ) {
1362
- run_all_tests_parallel ($ test_files , $ env , $ redir_tested );
1363
- return ;
1364
- }
1363
+ // if ($workers !== null && count($test_files) > 1 && !$workerID) {
1364
+ // run_all_tests_parallel($test_files, $env, $redir_tested);
1365
+ // return;
1366
+ // }
1365
1367
1366
1368
foreach ($ test_files as $ name ) {
1367
1369
if (is_array ($ name )) {
@@ -3724,10 +3726,11 @@ public function getExtensions(string $php): array
3724
3726
}
3725
3727
3726
3728
$ extDir = `$ php -d display_errors=0 -r "echo ini_get('extension_dir');" `;
3727
- $ extensions = explode (", " , `$ php -d display_errors=0 -r "echo implode(',', get_loaded_extensions());" `);
3729
+ $ extensions = explode (", " , `$ php -d display_errors=1 -d display_startup_errors=1 -r "echo implode(',', get_loaded_extensions());" `);
3728
3730
if (in_array ('Zend OPcache ' , $ extensions )) {
3729
3731
$ extensions [] = 'opcache ' ;
3730
3732
}
3733
+ print_r ($ extensions );
3731
3734
$ extensions = array_map ('strtolower ' , $ extensions );
3732
3735
3733
3736
$ result = [$ extDir , $ extensions ];
0 commit comments