function _drupal_error_handler
Same name in other branches
- 9 core/includes/bootstrap.inc \_drupal_error_handler()
- 8.9.x core/includes/bootstrap.inc \_drupal_error_handler()
- 10 core/includes/bootstrap.inc \_drupal_error_handler()
- 11.x 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.
3 calls to _drupal_error_handler()
- BootstrapGetFilenameTestCase::fileNotFoundErrorHandler in modules/
simpletest/ tests/ bootstrap.test - Skips handling of "file not found" errors.
- BootstrapGetFilenameWebTestCase::fileNotFoundErrorHandler in modules/
simpletest/ tests/ bootstrap.test - Skips handling of "file not found" errors.
- DatabaseTransactionTestCase::rollBackWithoutTransactionErrorHandler in modules/
simpletest/ tests/ database_test.test - Special handling of "rollback without transaction" errors.
2 string references to '_drupal_error_handler'
- _drupal_bootstrap_configuration in includes/
bootstrap.inc - Sets up the script environment and loads settings.php.
- _drupal_get_last_caller in includes/
errors.inc - Gets the last caller from a backtrace.
File
-
includes/
bootstrap.inc, line 2668
Code
function _drupal_error_handler($error_level, $message, $filename, $line) {
require_once DRUPAL_ROOT . '/includes/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.