cvs: pear /Log Log.php

From: Date: Thu, 02 Jan 2003 04:41:39 +0000
Subject: cvs: pear /Log Log.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8032@lists.php.net to get a copy of this message
jon Wed Jan 1 23:41:39 2003 EDT Modified files: /pear/Log Log.php Log: Use serialize() instead of md5() plus string concatenation to build the singleton's signature. Index: pear/Log/Log.php diff -u pear/Log/Log.php:1.15 pear/Log/Log.php:1.16 --- pear/Log/Log.php:1.15 Thu Nov 28 12:02:04 2002 +++ pear/Log/Log.php Wed Jan 1 23:41:38 2003 @@ -1,5 +1,5 @@ <?php -// $Id: Log.php,v 1.15 2002/11/28 17:02:04 jon Exp $ +// $Id: Log.php,v 1.16 2003/01/02 04:41:38 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@horde.org> * @author Jon Parise <jon@php.net> - * @version $Revision: 1.15 $ + * @version $Revision: 1.16 $ * @since Horde 1.3 * @package Log */ @@ -136,7 +136,7 @@ static $instances; if (!isset($instances)) $instances = array(); - $signature = md5($type . '|' . $name . '|' . $ident . '|' . $maxLevel); + $signature = serialize(array($type, $name, $ident, $conf, $maxLevel)); if (!isset($instances[$signature])) { $instances[$signature] = &Log::factory($type, $name, $ident, $conf, $maxLevel);

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