@@ -887,14 +887,16 @@ function write_information(): void
887
887
continue;
888
888
}
889
889
$ext = $matches[1];
890
- if (!in_array($ext, $exts) && !extension_loaded($ext) && @ dl($file)) {
890
+ if (!in_array($ext, $exts) && dl($file)) {
891
891
$exts[] = $ext;
892
892
}
893
893
}
894
894
echo implode(',', $exts);
895
895
?>
896
896
PHP);
897
897
$ exts_to_test = explode (', ' , shell_exec ("$ php $ pass_options $ info_params $ no_file_cache \"$ info_file \"" ));
898
+ var_dump ('from dl... ' );
899
+ print_r ($ exts_to_test );
898
900
// check for extensions that need special handling and regenerate
899
901
$ info_params_ex = [
900
902
'session ' => ['session.auto_start=0 ' ],
@@ -1280,10 +1282,10 @@ function run_all_tests(array $test_files, array $env, $redir_tested = null): voi
1280
1282
}
1281
1283
1282
1284
/* Ignore -jN if there is only one file to analyze. */
1283
- if ($ workers !== null && count ($ test_files ) > 1 && !$ workerID ) {
1284
- run_all_tests_parallel ($ test_files , $ env , $ redir_tested );
1285
- return ;
1286
- }
1285
+ // if ($workers !== null && count($test_files) > 1 && !$workerID) {
1286
+ // run_all_tests_parallel($test_files, $env, $redir_tested);
1287
+ // return;
1288
+ // }
1287
1289
1288
1290
foreach ($ test_files as $ name ) {
1289
1291
if (is_array ($ name )) {
@@ -3662,10 +3664,11 @@ public function getExtensions(string $php): array
3662
3664
}
3663
3665
3664
3666
$ extDir = shell_exec ("$ php -d display_errors=0 -r \"echo ini_get('extension_dir'); \"" );
3665
- $ extensions = explode (", " , shell_exec ("$ php -d display_errors=0 -r \"echo implode(',', get_loaded_extensions()); \"" ));
3667
+ $ extensions = explode (", " , shell_exec ("$ php -d display_errors=1 -d display_startup_errors=1 -r \"echo implode(',', get_loaded_extensions()); \"" ));
3666
3668
if (in_array ('zend opcache ' , $ extensions )) {
3667
3669
$ extensions [] = 'opcache ' ;
3668
3670
}
3671
+ print_r ($ extensions );
3669
3672
$ extensions = array_map ('strtolower ' , $ extensions );
3670
3673
3671
3674
$ result = [$ extDir , $ extensions ];
0 commit comments