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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user