Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services

Home Page:https://seldaek.github.io/monolog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

display_errors = 'Off' prevents HTTP 500 on Error

Itatsi opened this issue · comments

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')) {