ID: 10934 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.5 Assigned To: Comments: Yes, this is how it supposed to work. Fatal errors are always outputted via the default error handler. Previous Comments: --------------------------------------------------------------------------- [2001-05-17 13:12:53] [EMAIL PROTECTED] Short, sample function listed to quickly illustrate issue: [root@helpdesk bin]# more err.php <?php function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) { echo "USER ERROR HANDLER:"; echo " -- errno:$errno"; echo " -- errmsg:$errmsg"; echo " -- filename:$filename"; echo " -- linenum:$linenum"; echo "n"; } $old_error_handler = set_error_handler("userErrorHandler"); trigger_error("E_USER_ERROR", E_USER_ERROR); trigger_error("E_USER_WARNING", E_USER_WARNING); trigger_error("E_USER_NOTICE", E_USER_NOTICE); this_function_does_not_exist(); ?> [root@helpdesk bin]# ./php -q err.php USER ERROR HANDLER: -- errno:256 -- errmsg:E_USER_ERROR -- filename:err.php -- linenum:13 USER ERROR HANDLER: -- errno:512 -- errmsg:E_USER_WARNING -- filename:err.php -- linenum:14 USER ERROR HANDLER: -- errno:1024 -- errmsg:E_USER_NOTICE -- filename:err.php -- linenum:15 <br> <b>Fatal error</b>: Call to undefined function: this_function_does_not_exist() in <b>err.php</b> on line <b>16</b><br> [root@helpdesk bin]# --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10934&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]