php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #13114 User defined error-handler seems to miss some types of errors
Submitted: 2001-09-03 14:03 UTC Modified: 2001-09-03 14:24 UTC
From: mikkelj at acm dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-09-03 14:03 UTC] mikkelj at acm dot org
When defining ones own error handler function using set_error_handler(), it seems that not all kinds of errors are passed to the function. 

I have experienced the following errors (apparently of type E_ERROR - fatal errors) being handled by PHP's built-in error handler even though I have set a user defined error handler:

- Fatal error: Call to a member function on a non-object 
- Fatal error: Call to undefined function: some_function() 

Note: I have tried setting error_reporting(E_ALL) as well as error_reporting(0). 

Please respond for further information, if necessary.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-03 14:24 UTC] rasmus@php.net
Fatal errors are by definition not catchable in user space since they are a result of some fatal problem which would put us in a state where we can no longer reliably run any user-space code.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC