RE: [PEAR-DEV] #23320 [Opn->Csd]: Package Log, file /Log/mail.php , class Log_mail no longer inherits from PEAR

From: Date: Mon, 28 Apr 2003 08:10:43 +0000
Subject: RE: [PEAR-DEV] #23320 [Opn->Csd]: Package Log, file /Log/mail.php , class Log_mail no longer inherits from PEAR
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15634@lists.php.net to get a copy of this message
Yup, Release 1.6.5 does address this issue. From CVS 1.8 par jon Sat Apr 26 21:46:40 2003 Tags : RELEASE_1_6_5 jon Sat Apr 26 21:46:40 2003 Fix the mail handler. It needs to register its own destructor now that the Log class no longer inherits from the PEAR base class. /** * Destructor. Calls close(). * * @access private */ function _Log_mail() { $this->close(); } Arnaud. > Are you sure? > He is right that in line 80 log does call $this->PEAR() ... > > > -----Original Message----- > > From: arnaud@php.net [mailto:arnaud@php.net] > > Sent: Monday, April 28, 2003 10:02 AM > > To: pear-dev@lists.php.net > > Subject: [PEAR-DEV] #23320 [Opn->Csd]: Package Log, file > /Log/mail.php, > > class Log_mail no longer inherits from PEAR > > > > ID: 23320 > > Updated by: arnaud@php.net > > Reported By: rob at intruos dot com > > -Status: Open > > +Status: Closed > > Bug Type: PEAR related > > Operating System: Redhat 7.2 > > PHP Version: 4.3.1 > > -Assigned To: > > +Assigned To: jon@php.net > > New Comment: > > > > From lastest log release announcement > > > > > > > > The new PEAR package Log-1.6.5 (stable) has been released at > > http://pear.php.net/. > > > > > > > > Release notes > > > > ------------- > > > > The mail log handler needs to register its own destructer > now that the > > Log class no longer inherits from the PEAR base class. > > > > > > > > So it looks like it is good for closing :) > > > > > > Previous Comments: > > > -------------------------------------------------------------- > ---------- > > > > [2003-04-23 13:09:09] rob at intruos dot com > > > > When using the Log package and the Log_mail class I receive > an error: > > > > > > > > Call to undefined function: pear() in > /usr/share/pear/Log/mail.php on > > line 80 > > > > > > > > I'm looking at the CVS tree and you've got the Log_mail > extending Log > > which isn't extending PEAR so the following line faults: > > > > > > > > /* register the destructor */ > > > > $this->PEAR(); > > > > > > > > I'm assuming that this file was just overlooked. Log_file > works fine. > > > > > -------------------------------------------------------------- > ---------- > > > > > > -- > > Edit this bug report at > > http://bugs.php.net/?id=23320&edit=1 > > > > > > -- > > PEAR Development Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.dev (#15634) next »