]> granicus.if.org Git - php/commitdiff
Correction
authorMarcus Boerger <helly@php.net>
Fri, 15 Nov 2002 14:27:37 +0000 (14:27 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 15 Nov 2002 14:27:37 +0000 (14:27 +0000)
#Why does it mix up things again?...i do not know

run-tests.php

index 3fdb0ff7198722a738504b8e1aa6f6b268f599fd..b7a8031f775115065f03134f4f550539626671fa 100755 (executable)
@@ -336,7 +336,17 @@ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) {
                $failed_tests_data = '';
                $sep = "\n" . str_repeat('=', 80) . "\n";
                
-               $failed_tests_data .= "OS:\n". PHP_OS. "\n";
+               $failed_tests_data .= $failed_test_summary . "\n";
+               
+               foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {
+                       $failed_tests_data .= $sep . $test_info['name'];
+                       $failed_tests_data .= $sep . file_get_contents(realpath($test_info['output']));
+                       $failed_tests_data .= $sep . file_get_contents(realpath($test_info['diff']));
+                       $failed_tests_data .= $sep . "\n\n";
+               }
+               
+               $failed_tests_data .= "\n" . $sep . 'BUILD ENVIRONMENT' . $sep;
+               $failed_tests_data .= "OS:\n". PHP_OS. "\n\n";
                $automake = $autoconf = $libtool = $compiler = 'N/A';
                if (substr(PHP_OS, 0, 3) != "WIN") {
                        $automake = shell_exec('automake --version');
@@ -360,15 +370,6 @@ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) {
                $failed_tests_data .= "Bison:\n". @shell_exec('bison --version'). "\n";
                $failed_tests_data .= "\n\n";
                
-               $failed_tests_data .= $failed_test_summary . "\n";
-               
-               foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {
-                       $failed_tests_data .= $sep . $test_info['name'];
-                       $failed_tests_data .= $sep . file_get_contents(realpath($test_info['output']));
-                       $failed_tests_data .= $sep . file_get_contents(realpath($test_info['diff']));
-                       $failed_tests_data .= $sep . "\n\n";
-               }
-               
                $failed_tests_data .= $sep . "PHPINFO" . $sep;
                $failed_tests_data .= shell_exec($php.' -dhtml_errors=0 -i');