cvs: pear /Log/Log file.php
| From: | Jon Parise | Date: | Thu, 06 Feb 2003 05:21:54 +0000 |
| Subject: | cvs: pear /Log/Log file.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8727@lists.php.net to get a copy of this message | ||
jon Thu Feb 6 00:21:54 2003 EDT
Modified files:
/pear/Log/Log file.php
Log:
Silence errors from chmod() that may occur when the web server process
doesn't actually own the log file.
Index: pear/Log/Log/file.php
diff -u pear/Log/Log/file.php:1.16 pear/Log/Log/file.php:1.17
--- pear/Log/Log/file.php:1.16 Mon Jan 27 22:45:40 2003
+++ pear/Log/Log/file.php Thu Feb 6 00:21:54 2003
@@ -33,7 +33,7 @@
// | Jon Parise <jon@php.net> |
// +-----------------------------------------------------------------------+
//
-// $Id: file.php,v 1.16 2003/01/28 03:45:40 jon Exp $
+// $Id: file.php,v 1.17 2003/02/06 05:21:54 jon Exp $
/**
* The Log_file class is a concrete implementation of the Log::
@@ -41,7 +41,7 @@
* on the previous Log_file class by Jon Parise.
*
* @author Richard Heyes <richard@php.net>
-* @version $Revision: 1.16 $
+* @version $Revision: 1.17 $
* @package Log
*/
class Log_file extends Log
@@ -220,7 +220,7 @@
return false;
}
- chmod($this->_filename, $this->_mode);
+ @chmod($this->_filename, $this->_mode);
return true;
}