cvs: pear /File File.php

From: Date: Thu, 16 Dec 2004 14:59:15 +0000
Subject: cvs: pear /File File.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27487@lists.php.net to get a copy of this message
mike Thu Dec 16 09:59:15 2004 EDT Modified files: /pear/File File.php Log: * remove bogus version info * added new author; me * use file_Get_contents() in readAll() if available http://cvs.php.net/diff.php/pear/File/File.php?r1=1.25&r2=1.26&ty=u Index: pear/File/File.php diff -u pear/File/File.php:1.25 pear/File/File.php:1.26 --- pear/File/File.php:1.25 Thu Dec 16 09:53:29 2004 +++ pear/File/File.php Thu Dec 16 09:59:12 2004 @@ -17,14 +17,14 @@ // | Tal Peer <tal@php.net> | // +----------------------------------------------------------------------+ // -// $Id: File.php,v 1.25 2004/12/16 14:53:29 mike Exp $ +// $Id: File.php,v 1.26 2004/12/16 14:59:12 mike Exp $ /** * PEAR::File * * @package File * @category FileSystem - * @version $Revision: 1.25 $ + * @version $Revision: 1.26 $ */ /** @@ -84,10 +84,10 @@ * A class with common functions for writing, * reading and handling files and directories * - * @author Richard Heyes <richard@php.net> - * @author Tal Peer <tal@php.net> + * @author Richard Heyes <richard@php.net> + * @author Tal Peer <tal@php.net> + * @author Michael Wallner <mike@php.net> * @access public - * @version 0.9 * @package File */ class File extends PEAR @@ -187,14 +187,12 @@ */ function readAll($filename, $lock = false) { - /* if (function_exists('file_get_contents')) { if (false === $file = @file_get_contents($filename)) { return PEAR::raiseError("Cannot read file: $filename"); } return $file; } - */ $file = ''; while (false !== $buf = File::read($filename, FILE_DEFAULT_READSIZE, $lock)) { if (PEAR::isError($buf)) {

« previous php.pear.cvs (#27487) next »