Re: [patch] re-invoking default error handler

From: Date: Fri, 28 May 2004 07:44:28 +0000
Subject: Re: [patch] re-invoking default error handler
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-10141@lists.php.net to get a copy of this message
Bert Slagter wrote:
Now I add a custom errorhandler: ----------- <?php function myErrorHandler($errno, $errstr, $errfile, $errline)
{    print "<p>We've got a $errno on line $errline in $errfile!</p>";
}
    set_error_handler('myErrorHandler');
error_reporting(0);
Hm, i tried manually setting the second parameter of set_error_handler to E_ALL | E_STRICT and guess what.. that does the trick :). I don't know why I didn't think of this first.. So: --------- set_error_handler('myErrorHandler', E_ALL | E_STRICT); --------- Is this by design? Bert

« previous php.internals (#10141) next »