]> granicus.if.org Git - php/commitdiff
- gcc prints -v information on stderr, make sure that we catch it anyway.
authorJan Lehnardt <jan@php.net>
Thu, 24 Oct 2002 09:06:31 +0000 (09:06 +0000)
committerJan Lehnardt <jan@php.net>
Thu, 24 Oct 2002 09:06:31 +0000 (09:06 +0000)
 - I hope this does not cause problems with other compilers or shells. IMHO we
 - already rely on /bin/sh anyway, right?

run-tests.php

index b33105f76b79403320c585eaad1ba5fa86178551..0a9537a3dce9e97b29e707274168ae66dd03365b 100755 (executable)
@@ -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) {