I’d like to find out what error handler is currently, well, handling errors.
I know that set_error_handler() will return the previous error handler, but is there a way to find out what the current error handler is without setting a new one?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This isn’t possible in PHP – as you said, you could retrive the current error handler when you call set_error_handler and restore it with restore_error_handler