Prevent blank pages on session errors #20

Sloučený
Aaron sloučil 2 commity z větve session-errors do větve master před 2020-12-30 20:05:29 +01:00

2 Commity

Autor SHA1 Zpráva Datum
31f4edc996 Register ErrorHandler before Session start. 2020-03-11 22:38:17 +01:00
a208c0482f Invoke Dispatcher::kickGuest from Session for invalid sessions.
Previously, a NotAllowedException would be thrown if an invalid session
was encountered. However, these exceptions were not caught, and hence
would yield a fatal uncaught exception error.

At this point in Kabuki, the ErrorHandler class has not been registered yet
for error handling purposes. This error is therefore not visible if the PHP
ini directive 'display_errors' is set to 'Off'. As this is the default
production value, the script would fail with a blank page in such cases.
2020-03-11 22:38:15 +01:00