maybe fixed the issue
This commit is contained in:
parent
3c67a18f94
commit
99c328b7b5
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user