Re: Custom Error Handler
| From: | John W. Holmes | Date: | Wed, 18 Feb 2004 17:56:42 +0000 |
| Subject: | Re: Custom Error Handler | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178147@lists.php.net to get a copy of this message | ||
From: "Stuart" <lists@sharedserver.net>
> I have a custom error handler class that's working well. My problem is
> that I can't find a way to find out whether a particular error has been
> suppressed using the @ prefix. Is there a way to do this with a custom
> handler?
Next time start here
http://us2.php.net/manual/en/function.set-error-handler.php
and read everything.
You'll notice this if you do:
-----
It is important to remember that the standard PHP error handler is
completely bypassed. error_reporting() settings will have no effect and your
error handler will be called regardless - however you are still able to read
the current value of error_reporting and act appropriately. Of particular
note is that this value will be 0 if the statement that caused the error was
prepended by the @ error-control operator.
-----
---John Holmes...