From: Jan Lehnardt Date: Thu, 24 Oct 2002 09:06:31 +0000 (+0000) Subject: - gcc prints -v information on stderr, make sure that we catch it anyway. X-Git-Tag: php-4.3.0pre2~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2a80311443ee1a4afeb50321bf18c6c22971e4e;p=php - gcc prints -v information on stderr, make sure that we catch it anyway. - I hope this does not cause problems with other compilers or shells. IMHO we - already rely on /bin/sh anyway, right? --- diff --git a/run-tests.php b/run-tests.php index b33105f76b..0a9537a3dc 100755 --- a/run-tests.php +++ b/run-tests.php @@ -273,7 +273,7 @@ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) { $failed_tests_data .= "Autoconf:\n". shell_exec('autoconf --version'). "\n"; $failed_tests_data .= "Libtool:\n". shell_exec('libtool --version'). "\n"; $failed_tests_data .= "Bison:\n". shell_exec('bison --version'). "\n"; - $failed_tests_data .= "Compiler:\n". shell_exec(getenv('CC').' -v'). "\n"; + $failed_tests_data .= "Compiler:\n". shell_exec(getenv('CC').' -v 2>&1'). "\n"; $failed_tests_data .= "\n\n"; foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {