cvs: php-src(PHP_5_2) /ext/standard/tests/file file_get_contents.phpt

From: Date: Tue, 20 Jun 2006 18:55:46 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard/tests/file file_get_contents.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-38829@lists.php.net to get a copy of this message
tony2001 Tue Jun 20 18:55:46 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard/tests/file file_get_contents.phpt Log: don't leave garbage in tmp dir http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/file_get_contents.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: php-src/ext/standard/tests/file/file_get_contents.phpt diff -u php-src/ext/standard/tests/file/file_get_contents.phpt:1.1.2.2 php-src/ext/standard/tests/file/file_get_contents.phpt:1.1.2.3 --- php-src/ext/standard/tests/file/file_get_contents.phpt:1.1.2.2 Tue Jun 20 18:48:56 2006 +++ php-src/ext/standard/tests/file/file_get_contents.phpt Tue Jun 20 18:55:46 2006 @@ -2,8 +2,9 @@ file_get_contents() leaks on empty file --FILE-- <?php - $tmpfname = tempnam("/tmp", "emptyfile"); - echo file_get_contents($tmpfname), "done."; + $tmpfname = tempnam("/tmp", "emptyfile"); + echo file_get_contents($tmpfname), "done."; + unlink($tmpfname); ?> --EXPECT-- done.

« previous php.cvs (#38829) next »