mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Setting the core fatal error handler if it is not configured.
This commit is contained in:
parent
05cdae6d1a
commit
a56f7b84e3
1 changed files with 3 additions and 0 deletions
|
@ -914,6 +914,9 @@ class App {
|
|||
}
|
||||
|
||||
$fatalErrorHandler = Configure::read('Error.fatalErrorHandler');
|
||||
if ($fatalErrorHandler === null) {
|
||||
$fatalErrorHandler = 'ErrorHandler::handleFatalError';
|
||||
}
|
||||
if (!is_callable($fatalErrorHandler)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue