cvs: php-src(PHP_5_1) / run-tests.php

From: Date: Sun, 11 Sep 2005 17:33:16 +0000
Subject: cvs: php-src(PHP_5_1) / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-33900@lists.php.net to get a copy of this message
iliaa Sun Sep 11 13:33:16 2005 EDT Modified files: (Branch: PHP_5_1) /php-src run-tests.php Log: Make use of 5.0+ features http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.226.2.1&r2=1.226.2.2&ty=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.226.2.1 php-src/run-tests.php:1.226.2.2 --- php-src/run-tests.php:1.226.2.1 Mon Sep 5 20:42:20 2005 +++ php-src/run-tests.php Sun Sep 11 13:33:15 2005 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.226.2.1 2005/09/06 00:42:20 iliaa Exp $ */ +/* $Id: run-tests.php,v 1.226.2.2 2005/09/11 17:33:15 iliaa Exp $ */ /* * TODO: @@ -604,9 +604,7 @@ { 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

« previous php.cvs (#33900) next »