1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

Set HTTP response code to 500 in case of exceptions

Resolves Seldaek/monolog#1096.
This commit is contained in:
Hinrik Örn Sigurðsson
2018-01-18 10:32:25 +01:00
parent 7b99283627
commit 86d0984517

View File

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