1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 18:30:15 +02:00

Fix display_errors handling to handle string values, fixes #1804

This commit is contained in:
Jordi Boggiano
2023-06-21 10:44:08 +02:00
parent 975a02f765
commit 0ff87cf321

View File

@@ -198,7 +198,7 @@ class ErrorHandler
($this->previousExceptionHandler)($e);
}
if (!headers_sent() && !ini_get('display_errors')) {
if (!headers_sent() && in_array(strtolower(ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) {
http_response_code(500);
}