shutdown function that returns errorcode

This commit is contained in:
Andreas 2019-09-19 12:35:52 +02:00
parent c8e0eb65b0
commit 3c67a18f94

View File

@ -1,4 +1,12 @@
<?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');
//date_default_timezone_set('Europe/Amsterdam');
require_once('./controller/MVCController.php');