1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 22:56:41 +02:00

Merge pull request #1106 from hinrik/status_500_exception

Set HTTP response code to 500 in case of exceptions
This commit is contained in:
Jordi Boggiano
2018-06-17 16:06:06 +02:00
committed by GitHub

View File

@@ -170,6 +170,10 @@ class ErrorHandler
call_user_func($this->previousExceptionHandler, $e); call_user_func($this->previousExceptionHandler, $e);
} }
if (!headers_sent() && ini_get('display_errors') === 0) {
http_response_code(500);
}
exit(255); exit(255);
} }