PHP E_CORE_ERROR

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

609 views
d

By. Jacob

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 to use the AVIF image format in PHP; A1 or AVIF is a new image format that offers better compression than WebP, JPEG and PNG, and that already works in Google Chrome.
  2. How to create a router in PHP to handle different request types, paths, and request parameters.
  3. How much faster is C++ than PHP to increment and display a counter in a loop?
  4. Detecting the request method used to fetch a web page with PHP, routing, HTTP responses, and more.
  5. How to create a custom error handler for PHP that handles non-fetal errors.

More in: PHP Tutorials