-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom error handler crashes when session is invalid #1809
Comments
We're seeing the exact same behaviour in our enviroment.
|
Describe the bug
The custom error handlers throw an exception when there is no valid session. This results in a fatal error, early enough to cause PHP to display a blank 500 error to end users.
To Reproduce
Throw any unhandled exception before the creation of a valid session.
For example, the exception thrown by unserialize() when trying to read an existing 1.19.x session will reliably trigger this.
Expected behavior
A helpful error message to be displayed to the user :-)
This probably requires a transient session to be created by the handler if there isn't a valid one.
Screenshots or logs
The text was updated successfully, but these errors were encountered: