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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to