Re: cvs: pear /Cache_Lite Lite.php

From: Date: Sun, 17 Apr 2005 19:12:34 +0000
Subject: Re: cvs: pear /Cache_Lite Lite.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31241@lists.php.net to get a copy of this message
Fabien MARTY wrote:
Modified files: /pear/Cache_Lite Lite.php Log: avoid a potential error message if cache doesn't exist
-        return filemtime($this->_file);
+        return @filemtime($this->_file);
@ error suppression is potential for problems, perhaps it would be better to do something like: if (file_exists($this->_file)) { return filemtime($this->_file); } Regards, Matt

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