trying to fix
This commit is contained in:
parent
d8e00627fd
commit
44b7e83f9a
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
http_response_code(1337);
|
|
||||||
register_shutdown_function(function() {
|
register_shutdown_function(function() {
|
||||||
$error = error_get_last();
|
$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');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user