]> granicus.if.org Git - php/commitdiff
Simplify code by making use 5.1+ functions
authorIlia Alshanetsky <iliaa@php.net>
Tue, 6 Sep 2005 00:42:20 +0000 (00:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 6 Sep 2005 00:42:20 +0000 (00:42 +0000)
run-tests.php

index ac6a2dec5b7012776f99698dfe7a9de1c5281b8d..9ec861864c66db632c39985bcc541c8a144ab536 100755 (executable)
@@ -545,10 +545,8 @@ if (!getenv('NO_INTERACTION')) {
                
                if ($just_save_results || !mail_qa_team($failed_tests_data, $compression, $status)) {
                        $output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . ( $compression ? '.txt.gz' : '.txt' );
-                       $fp = fopen($output_file, "w");
-                       fwrite($fp, $failed_tests_data);
-                       fclose($fp);
-               
+                       file_put_contents($output_file, $failed_tests_data);
+
                        if (!$just_save_results) {
                            echo "\nThe test script was unable to automatically send the report to PHP's QA Team\n";
                        }