Re: error_handler

From: Date: Fri, 19 Dec 2003 13:32:13 +0000
Subject: Re: error_handler
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-6597@lists.php.net to get a copy of this message
At 12:00 PM 12/19/2003 +0100, Christian Schneider wrote:
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.
Agree. Andi

« previous php.internals (#6597) next »