Skip to content
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

display_errors = 'Off' prevents HTTP 500 on Error #1804

Closed
Itatsi opened this issue Apr 19, 2023 · 0 comments
Closed

display_errors = 'Off' prevents HTTP 500 on Error #1804

Itatsi opened this issue Apr 19, 2023 · 0 comments
Labels
Milestone

Comments

@Itatsi
Copy link

Itatsi commented Apr 19, 2023

according https://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors is the display_errors a string.

if I configure it to 'Off' unhandled php errors dont return an HTTP 500
I suspect that the error lies in the conversion to boolean here.

if (!headers_sent() && !(bool) ini_get('display_errors')) {

@Seldaek Seldaek added the Bug label Jun 20, 2023
@Seldaek Seldaek added this to the 2.x milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants