function _js_fatal_error_handler in JS Callback Handler 7.2
Provides custom PHP fatal error handling.
1 string reference to '_js_fatal_error_handler'
- js_execute_request in ./
js.module - Loads the requested module and executes the requested callback.
File
- ./
js.module, line 556 - JavaScript callback handler module.
Code
function _js_fatal_error_handler() {
if ($error = error_get_last()) {
require_once DRUPAL_ROOT . '/includes/errors.inc';
_js_log_php_error(array(
'%type' => 'Fatal Error',
// The standard PHP error handler considers that the error messages
// are HTML. Mimic this behavior here.
'!message' => filter_xss_admin($error['message']),
'%file' => $error['file'],
'%line' => $error['line'],
'severity_level' => WATCHDOG_ERROR,
), TRUE);
}
}