Re: handle E_STRICT with own error handler

From: Date: Thu, 27 May 2004 19:35:57 +0000
Subject: Re: handle E_STRICT with own error handler
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187079@lists.php.net to get a copy of this message
Jason, Please read my question a bit better :). PHP indeed does report the E_STRICT notices fine, that's not my problem. I know how error handling in PHP works :). But I have my own error handler (see: set_error_handler()) and handle all notices and warnings myself (and all other E_USER_* of course). And I was wondering why errors of the level E_STRICT don't make it to my custom error handler function, in contrast to for example E_NOTICE. Didn't expect to have to explain this here :(. Bert Jason Barnett wrote:
Bert Slagter wrote:
Hi, I tried to use my own error handler to handle all non-fatal errors. But to my surprise it seems to be impossible to handle E_STRICT level notices. I don't know whether this is by design, not yet implemented or a know bug that I overlooked - but it seems rather strange :). To reproduce: - create your own error handler - set error_reporting to 0
If you set error_reporting to 0, then why should you expect to have any errors reported? You'd need error_reporting(2048) to just see those errors (assuming you're using PHP5). http://www.php.net/errorfunc


« previous php.general (#187079) next »