diff --git a/run-tests.php b/run-tests.php index 195d17fa0a03..28623ddc6cf3 100755 --- a/run-tests.php +++ b/run-tests.php @@ -881,7 +881,8 @@ function write_information(array $user_tests, $phpdbg): void } echo implode(',', $exts); PHP); - $extensionsNames = explode(',', shell_exec("$php_escaped $pass_options $info_params $no_file_cache \"$info_file\"")); + $shellOutput = shell_exec("$php_escaped $pass_options $info_params $no_file_cache \"$info_file\""); + $extensionsNames = $shellOutput !== null && $shellOutput !== false ? explode(',', $shellOutput) : []; $exts_to_test = array_unique(remap_loaded_extensions_names($extensionsNames)); // check for extensions that need special handling and regenerate $info_params_ex = [