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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mikkelj at acm dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 19:01:32 2025 UTC