2
0
Jordi Boggiano 2 жил өмнө
parent
commit
e239236968

+ 1 - 1
src/Monolog/ErrorHandler.php

@@ -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);
         }