maybe fixed the issue

This commit is contained in:
Andreas 2019-09-19 12:45:41 +02:00
parent 3c67a18f94
commit 99c328b7b5

View File

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