Re: error_handler
| From: | Christian Schneider | Date: | Fri, 19 Dec 2003 11:00:57 +0000 |
| Subject: | Re: error_handler | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6594@lists.php.net to get a copy of this message | ||
Mike Ford wrote:
How about a new optional 2nd argument to set_error_handler?Sounds like a good idea to me. Could be the mask of errors one wants to get in the error handler. So one could do set_error_handler("handler", E_ALL); # Default, current mode set_error_handler("handler", error_reporting()); # Honor settings set_error_handler("handler", ...); # Custom mode BTW: I think the documentation/examples to error_reporting() should explain leaving out the parameter to not change the level and just get the current level back. Opinions? - Chris