Which of the following error types cannot be caught by setting up a custom error handler? (Select two)
[4651,4653]
Correct:
--> E_ERROR
--> E_PARSE
Answers B and D are correct. Parse errors, which usually indicate a syntax error in the script, cannot be caught by a custom error handler for obvious reasons: since the error handler resides in the script and the script cannot be parsed, the handler cannot be executed. Similarly, E_ERROR is generally used to indicate fatal runtime errors, such as memory allocation issues. Therefore, the script is immediately halted, because the interpreter is unable to guarantee that it will be possible to execute any further code.