#18310 [Opn->Csd]: Log_composite can't work
| From: | mj@php.net | Date: | Fri, 23 Aug 2002 10:49:06 +0000 |
| Subject: | #18310 [Opn->Csd]: Log_composite can't work | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8616@lists.php.net to get a copy of this message | ||
ID: 18310
Updated by: mj@php.net
Reported By: koyama@hoge.org
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: FreeBSD
PHP Version: 4CVS-2002-07-12
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-12 08:23:28] koyama@hoge.org
The newest Log_composite class can't work for some reason.
- Log_composite doesn't extend from Log class, but call notifyAll()
method in its log() method. The Log class has notifyAll().
- In addChild() method, put 'child' object to 'children' array with
$child->_listenerID key. The correct value is $child->_childID, isn't
it?
I have a patch:
--- composite.php-orig Fri Jul 12 21:05:34 2002
+++ composite.php Fri Jul 12 21:07:59 2002
@@ -12,7 +12,7 @@
* @package Log
*/
-class Log_composite {
+class Log_composite extends Log {
/**
* Array holding all Log instances
@@ -112,7 +112,7 @@
$child->_childID = uniqid(rand());
- $this->children[$child->_listenerID] = &$child;
+ $this->children[$child->_childID] = &$child;
}
/**
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18310&edit=1