|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-23 06:49 UTC] mj@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 23:00:01 2025 UTC |
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; } /**