1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-05 12:13:23 +02:00

[ticket/17542] Throw an exception at the exit_handler instead

PHPBB-17542
This commit is contained in:
Matt Friedman
2025-09-18 15:32:04 -07:00
parent 243c67a3ed
commit a37fb9a7cf

View File

@@ -26,9 +26,10 @@ class phpbb_mock_event_dispatcher extends \phpbb\event\dispatcher
{ {
$data = (array) $data; $data = (array) $data;
// Throw an exception if we reach the core's exit_handler()
if ($eventName === 'core.exit_handler') if ($eventName === 'core.exit_handler')
{ {
$data['exit_handler_override'] = true; throw new \RuntimeException('Exit handler called');
} }
return $data; return $data;