Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?

Giao Linh

New member
Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?
A. error_reporting = E_ALL
B. error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR
C. error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR
D. error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR
 
Answer: d
Explanation: E_ERROR is a fatal run-time error, that can’t be recovered from. E_COMPILE_ERROR is a fatal error that occurs while the script was being compiled. And E_CORE_ERROR is a fatal error that occurs during the PHP’s engine initial startup.
 

Tìm kiếm

Back
Top