diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-09-06 00:42:20 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-09-06 00:42:20 +0000 |
commit | a022e10c2d907be7112cebb6764e129691ee7317 (patch) | |
tree | 00b489a3c8a762f1007779c64e4d05069770d73b /run-tests.php | |
parent | a3c168239dcdda3f14638e850bd6dc393d57e25f (diff) | |
download | php-git-a022e10c2d907be7112cebb6764e129691ee7317.tar.gz |
Simplify code by making use 5.1+ functions
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/run-tests.php b/run-tests.php index ac6a2dec5b..9ec861864c 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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"; } |