trying to fix

This commit is contained in:
Andreas 2019-09-19 14:06:54 +02:00
parent d8e00627fd
commit 44b7e83f9a

View File

@ -1,8 +1,8 @@
<?php
http_response_code(1337);
register_shutdown_function(function() {
$error = error_get_last();
if ($error['type'] == E_ERROR || $error['type'] == E_PARSE || $error['type'] == E_CORE_ERROR || $error['type'] == E_COMPILE_ERROR || $error['type'] == E_RECOVERABLE_ERROR) {
if ($error['type'] == E_ERROR) {
header('HTTP/1.1 500 Internal Server Error');
http_response_code(500);
}