function _drupal_error_handler in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/includes/bootstrap.inc \_drupal_error_handler()
Provides custom PHP error handling.
Parameters
$error_level: The level of the error raised.
$message: The error message.
$filename: The filename that the error was raised in.
$line: The line number the error was raised at.
$context: An array that points to the active symbol table at the point the error occurred.
3 string references to '_drupal_error_handler'
- DrupalKernel::bootEnvironment in core/
lib/ Drupal/ Core/ DrupalKernel.php - Setup a consistent PHP environment.
- drupal_rebuild in core/
includes/ utility.inc - Rebuilds all caches even when Drupal itself does not work.
- ErrorTest::providerTestGetLastCaller in core/
tests/ Drupal/ Tests/ Core/ Utility/ ErrorTest.php - Data provider for testGetLastCaller.
File
- core/
includes/ bootstrap.inc, line 540 - Functions that need to be loaded on every Drupal request.
Code
function _drupal_error_handler($error_level, $message, $filename, $line, $context) {
require_once __DIR__ . '/errors.inc';
_drupal_error_handler_real($error_level, $message, $filename, $line, $context);
}