iliaa Mon Sep 5 20:42:23 2005 EDT Modified files: (Branch: PHP_5_1) /php-src run-tests.php Log: Simplify code by making use 5.1+ functions http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.226&r2=1.226.2.1&ty=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.226 php-src/run-tests.php:1.226.2.1 --- php-src/run-tests.php:1.226 Wed Aug 3 10:06:34 2005 +++ php-src/run-tests.php Mon Sep 5 20:42:20 2005 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.226 2005/08/03 14:06:34 sniper Exp $ */ +/* $Id: run-tests.php,v 1.226.2.1 2005/09/06 00:42:20 iliaa Exp $ */ /* * TODO: @@ -545,10 +545,8 @@ 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"; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php