RE: [PEAR] Pear Error fun
| From: | Joseph Blythe | Date: | Tue, 17 Jun 2003 00:04:46 +0000 |
| Subject: | RE: [PEAR] Pear Error fun | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6012@lists.php.net to get a copy of this message | ||
Thankyou Alexander,
I can see why it was returning an object now :)
Regards,
Joseph
-----Original Message-----
From: alexander.merz@web.de [mailto:alexander.merz@web.de]
Sent: Monday, 16 June 2003 8:29 PM
To: Joseph Blythe
Cc: Pear-General (E-mail)
Subject: Re: [PEAR] Pear Error fun
Joseph Blythe wrote:
>
> function bar()
> {
> $this->setErrorHandling(PEAR_ERROR_CALLBACK, array("bar",
> "handle_error"));
> }
function bar()
{
$this->setErrorHandling(PEAR_ERROR_CALLBACK, array($this,"handle_error"));
}
prints:
C:\>c:\php4\php -f test.php
10 An ugly error has occured.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php