logo       

cvs: pear /Log Log.php: msg#00622

php.cvs.pear

Subject: cvs: pear /Log Log.php

jon Fri Sep 27 15:22:54 2002 EDT

Modified files:
/pear/Log Log.php
Log:
Fix the singleton() function by receiving the reference from the factory()
function.


Index: pear/Log/Log.php
diff -u pear/Log/Log.php:1.12 pear/Log/Log.php:1.13
--- pear/Log/Log.php:1.12 Fri Sep 27 12:12:14 2002
+++ pear/Log/Log.php Fri Sep 27 15:22:54 2002
@@ -1,5 +1,5 @@
<?php
-// $Id: Log.php,v 1.12 2002/09/27 16:12:14 jon Exp $
+// $Id: Log.php,v 1.13 2002/09/27 19:22:54 jon Exp $
// $Horde: horde/lib/Log.php,v 1.15 2000/06/29 23:39:45 jon Exp $

require_once 'PEAR.php';
@@ -19,7 +19,7 @@
*
* @author Chuck Hagenbuch <chuck@xxxxxxxxx>
* @author Jon Parise <jon@xxxxxxx>
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
* @since Horde 1.3
* @package Log
*/
@@ -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);
}




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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise