bjori           Tue Jun 20 18:46:14 2006 UTC

  Added files:                 
    /php-src/ext/standard/tests/file    file_get_contents.phpt 
  Log:
  add test for file_get_contents() leaking on empty file
  
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/file_get_contents.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/file/file_get_contents.phpt
+++ php-src/ext/standard/tests/file/file_get_contents.phpt
--TEST--
file_get_contents() leaks on empty file
--FILE--
<?php
    $tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
    echo file_get_contents($tmpfname), "done.";
?>
--EXPECT--
done.

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to