note 8866 modified in error_reporting by zak

From: Date: Tue, 26 Dec 2000 20:57:41 +0000
Subject: note 8866 modified in error_reporting by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9089@lists.php.net to get a copy of this message
error_reporting() has no effect if you have defined your own error handler with set_error_handler() [Editor's Note: This is not quite accurate. E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and E_COMPILE_WARNING error levels will be handled as per the error_reporting settings. All other levels of errors will be passed to the custom error handler defined by set_error_handler(). Zeev Suraski suggests that a simple way to use the defined levels of error reporting with your custom error handlers is to add the following line to the top of your error handling function: if (!($type & error_reporting())) return; -zak@php.net] http://www.php.net/manual/function.error-reporting.php

« previous php.notes (#9089) next »