From: Ilia Alshanetsky Date: Sun, 11 Sep 2005 17:33:15 +0000 (+0000) Subject: Make use of 5.0+ features X-Git-Tag: php-5.1.0RC2~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be945f9fe296abd94179725c5a8beecbea5995a2;p=php Make use of 5.0+ features --- diff --git a/run-tests.php b/run-tests.php index 9ec861864c..c4e0b7789e 100755 --- a/run-tests.php +++ b/run-tests.php @@ -604,9 +604,7 @@ function save_text($filename,$text) { global $DETAILED; - $fp = @fopen($filename,'w') or error("Cannot open file '" . $filename . "' (save_text)"); - fwrite($fp,$text); - fclose($fp); + @file_put_contents($filename, $text) or error("Cannot open file '" . $filename . "' (save_text)"); if (1 < $DETAILED) echo " FILE $filename {{{ $text