maybe fixed the issue
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
register_shutdown_function(function() {
|
||||
$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');
|
||||
http_response_code(500);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user