PHP E_CORE_ERROR

The E_CORE_ERROR error level deals with core errors doing the initial startup of PHP.

84 views

Edited: 2021-04-18 16:52

An E_CORE_ERROR is a fetal error that will end execution of your script.

Core errors are caused by PHP's core, and will not by thrown by functions. Very few things seem to cause core errors.

E_CORE_ERROR is included in E_ALL., and will not be sent to a custom error handler. Instead it is handled in accordance with the error_reporting setting.

To show all errors:

error_reporting(E_ALL);

Here is a few examples of potential core errors:

Tell us what you think:

  1. How much faster is C++ than PHP to increment and display a counter in a loop?
  2. How to create a router in PHP that also handles request- methods and parameters.
  3. Detecting the request method used to fetch a web page with PHP, routing, HTTP responses, and more.
  4. How to create a custom error handler for PHP that handles non-fetal errors.
  5. Setting custom HTTP Headers with cURL is useful when changing User Agent or Cookies. Headers can be changed two ways, both using the curl_setopt function.

More in: PHP Tutorials