function _drupal_error_handler

Same name and namespace in other branches
  1. 7.x includes/bootstrap.inc \_drupal_error_handler()
  2. 9 core/includes/bootstrap.inc \_drupal_error_handler()
  3. 8.9.x core/includes/bootstrap.inc \_drupal_error_handler()
  4. 10 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: (optional) The filename that the error was raised in.

$line: (optional) The line number the error was raised at.

5 string references to '_drupal_error_handler'
DrupalKernel::bootEnvironment in core/lib/Drupal/Core/DrupalKernel.php
Setup a consistent PHP environment.
DrupalKernelTest::tearDown in core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php
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.
TestRunnerKernel::boot in core/lib/Drupal/Core/Test/TestRunnerKernel.php
Boots the current kernel.

File

core/includes/bootstrap.inc, line 106

Code

function _drupal_error_handler($error_level, $message, $filename = NULL, $line = NULL) {
    require_once __DIR__ . '/errors.inc';
    _drupal_error_handler_real($error_level, $message, $filename, $line);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.