@@ -845,19 +845,19 @@ function write_information()
845845 $info_params = array();
846846 settings2array($ini_overwrites, $info_params);
847847 $info_params = settings2params($info_params);
848- $php_info = ` $php $pass_options $info_params $no_file_cache "$info_file"` ;
849- define('TESTED_PHP_VERSION', ` $php -n -r "echo PHP_VERSION;"` );
848+ $php_info = shell_exec(" $php $pass_options $info_params $no_file_cache \ "$info_file\"") ;
849+ define('TESTED_PHP_VERSION', shell_exec(" $php -n -r \ "echo PHP_VERSION;\"") );
850850
851851 if ($php_cgi && $php != $php_cgi) {
852- $php_info_cgi = ` $php_cgi $pass_options $info_params $no_file_cache -q "$info_file"` ;
852+ $php_info_cgi = shell_exec(" $php_cgi $pass_options $info_params $no_file_cache -q \ "$info_file\"") ;
853853 $php_info_sep = "\n---------------------------------------------------------------------";
854854 $php_cgi_info = "$php_info_sep\nPHP : $php_cgi $php_info_cgi$php_info_sep";
855855 } else {
856856 $php_cgi_info = '';
857857 }
858858
859859 if ($phpdbg) {
860- $phpdbg_info = ` $phpdbg $pass_options $info_params $no_file_cache -qrr "$info_file"` ;
860+ $phpdbg_info = shell_exec(" $phpdbg $pass_options $info_params $no_file_cache -qrr \ "$info_file\"") ;
861861 $php_info_sep = "\n---------------------------------------------------------------------";
862862 $phpdbg_info = "$php_info_sep\nPHP : $phpdbg $phpdbg_info$php_info_sep";
863863 } else {
@@ -872,7 +872,7 @@ function write_information()
872872 // load list of enabled extensions
873873 save_text($info_file,
874874 '<?php echo str_replace("Zend OPcache", "opcache", implode(",", get_loaded_extensions())); ?>');
875- $exts_to_test = explode(',', ` $php $pass_options $info_params $no_file_cache "$info_file"` );
875+ $exts_to_test = explode(',', shell_exec(" $php $pass_options $info_params $no_file_cache \ "$info_file\"") );
876876 // check for extensions that need special handling and regenerate
877877 $info_params_ex = array(
878878 'session' => array('session.auto_start=0'),
@@ -2171,9 +2171,9 @@ function run_test($php, $file, array $env)
21712171 $ext_params = array();
21722172 settings2array($ini_overwrites, $ext_params);
21732173 $ext_params = settings2params($ext_params);
2174- $ext_dir = ` $php $pass_options $extra_options $ext_params $no_file_cache -d display_errors=0 -r "echo ini_get('extension_dir');"` ;
2174+ $ext_dir = shell_exec(" $php $pass_options $extra_options $ext_params $no_file_cache -d display_errors=0 -r \ "echo ini_get('extension_dir');\"") ;
21752175 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
2176- $loaded = explode(",", ` $php $pass_options $extra_options $ext_params $no_file_cache -d display_errors=0 -r "echo implode(',', get_loaded_extensions());"` );
2176+ $loaded = explode(",", shell_exec(" $php $pass_options $extra_options $ext_params $no_file_cache -d display_errors=0 -r \ "echo implode(',', get_loaded_extensions());\"") );
21772177 $ext_prefix = IS_WINDOWS ? "php_" : "";
21782178 foreach ($extensions as $req_ext) {
21792179 if (!in_array($req_ext, $loaded)) {
@@ -3403,7 +3403,7 @@ function show_result(
34033403 $tested,
34043404 $tested_file,
34053405 $extra = '',
3406- array $temp_filenames = null
3406+ $temp_filenames = null
34073407) {
34083408 global $SHOW_ONLY_GROUPS, $colorize;
34093409
0 commit comments