Adds proper fatal error handling and fixes CLI error reporting.

This commit is contained in:
jove 2016-08-31 20:51:09 +01:00
parent 77b99b2c4f
commit f0a625b238
3 changed files with 18 additions and 18 deletions

View file

@ -325,7 +325,7 @@ if (isset($_POST['delete'])) {
$post['file_tmp'] = tempnam($config['tmp'], 'url');
function unlink_tmp_file($file) {
@unlink($file);
error();
fatal_error_handler();
}
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);