RE: [PEAR-DEV] Re: Log and locking
| From: | Richard Heyes | Date: | Fri, 27 Sep 2002 18:53:10 +0000 |
| Subject: | RE: [PEAR-DEV] Re: Log and locking | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9621@lists.php.net to get a copy of this message | ||
> The following test script results in an empty log file being created.
> It doesn't appear to write anything to it, though. I don't have time
> to investigate any further right now, however.
Fixed:
Index: Log.php
===================================================================
RCS file: /repository/pear/Log/Log.php,v
retrieving revision 1.12
diff -b -u -r1.12 Log.php
--- Log.php 27 Sep 2002 16:12:14 -0000 1.12
+++ Log.php 27 Sep 2002 18:49:31 -0000
@@ -138,7 +138,7 @@
$signature = md5($type . '][' . $name . '][' . $ident . ']['
.
implode('][', $conf) . '][' . $maxLevel);
if (!isset($instances[$signature])) {
- $instances[$signature] = Log::factory($type, $name, $ident,
$conf,
+ $instances[$signature] = &Log::factory($type, $name,
$ident, $conf,
$maxLevel);
}
--
Richard Heyes