1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-01 02:40:24 +02:00

Merge branch '2.x'

This commit is contained in:
Jordi Boggiano
2023-06-21 10:46:11 +02:00

View File

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