Error Functions

  1. debug_backtrace()
  2. debug_print_backtrace()
  3. error_get_last()
  4. error_log()
  5. error_reporting()
  6. restore_error_handler()
  7. restore_exception_handler()
  8. set_error_handler()
  9. set_exception_handler()
  10. trigger_error()
  11. user_error()

Error Constants

E_ERROR1

Fatal run-time errors. Errors that cannot be recovered from. Execution of the script is halted

E_WARNING    2

Non-fatal run-time errors. Execution of the script is not halted

E_PARSE

Compile-time parse errors. Parse errors should only be generated by the parser

E_NOTICE 

Run-time notices. The script found something that might be an error, but could also happen when running a script normally

E_CORE_ERROR 

Fatal errors at PHP startup. This is like an E_ERROR in the PHP core

E_CORE_WARNING

Non-fatal errors at PHP startup. This is like an E_WARNING in the PHP core

E_COMPILE_ERROR

Fatal compile-time errors. This is like an E_ERROR generated by the Zend Scripting Engine

E_COMPILE_WARNING

Non-fatal compile-time errors. This is like an E_WARNING generated by the Zend Scripting Engine

E_USER_ERROR

Fatal user-generated error. This is like an E_ERROR set by the programmer using the PHP function trigger_error()

E_USER_WARNING

Non-fatal user-generated warning. This is like an E_WARNING set by the programmer using the PHP function trigger_error()

E_USER_NOTICE

User-generated notice. This is like an E_NOTICE set by the programmer using the PHP function trigger_error()

E_STRICT

Run-time notices. PHP suggest changes to your code to help interoperability and compatibility of the code

E_RECOVERABLE_ERROR

Catchable fatal error. This is like an E_ERROR but can be caught by a user defined handle (see also set_error_handler())

E_ALL

All errors and warnings, except of level E_STRICT

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *