1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17176] Combine error handler with exception handling/msg_handler()

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-09-21 15:45:46 +02:00
parent cf799897e2
commit 45cefd4433
3 changed files with 11 additions and 19 deletions

View File

@@ -65,15 +65,8 @@ class debug
ini_set('display_errors', 1);
}
if ($displayErrors)
{
error_handler::register(new error_handler(new BufferingLogger(), true));
}
else
{
error_handler::register()->throwAt(0, true);
}
DebugClassLoader::enable();
error_handler::register(new error_handler(new BufferingLogger(), $displayErrors));
}
}