shutdown function that returns errorcode
This commit is contained in:
parent
c8e0eb65b0
commit
3c67a18f94
@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
register_shutdown_function(function() {
|
||||||
|
$error = error_get_last();
|
||||||
|
if ($error['type'] == E_ERROR) {
|
||||||
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
require_once('./controller/TestUtils.php');
|
require_once('./controller/TestUtils.php');
|
||||||
//date_default_timezone_set('Europe/Amsterdam');
|
//date_default_timezone_set('Europe/Amsterdam');
|
||||||
require_once('./controller/MVCController.php');
|
require_once('./controller/MVCController.php');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user