RE: [PHP] set_error_handler()
| From: | Boget, Chris | Date: | Tue, 17 Apr 2001 12:05:55 +0000 |
| Subject: | RE: [PHP] set_error_handler() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48942@lists.php.net to get a copy of this message | ||
> ""Boget, Chris"" <Chris.Boget@wild.net> wrote:
> > Can you use the above function to set the error
> > handler to a custom class? If so, how? I've been
> > having no luck no matter what I do...
> I tried doing something like:
> set_error_handler("Error::handleError");
> myself, and to no avail. It seems that the namespace
> resolution in PHP is still very primitive. I know
> "Error::handleError()" will work in normal context,
> but it doesn't seem to work in dynamic evaluations.
> Perhaps when PHP gets real namespace support.
Well, in the mean time, I found a way around it that
seems to work ok. :P What I did is included in the
last message I sent in this thread.
Chris