diff options
author | jmechnich <[email protected]> | 2022-09-29 16:46:33 +0200 |
---|---|---|
committer | jmechnich <[email protected]> | 2022-10-01 10:28:36 +0200 |
commit | 504d0afd352d1d388d5c5c96493e1d7479fc6d1a (patch) | |
tree | b598e41a8bd09137b555a92fcbf1d43c3876a035 /include | |
parent | 42bc1620b8deda73b96b2e0029c6de79daa5ccca (diff) |
Fix handling of suppressed errors
Diffstat (limited to 'include')
-rw-r--r-- | include/errorhandler.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php index 30b6902b3..da8e4f29c 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -43,14 +43,12 @@ function format_backtrace($trace): string { } function ttrss_error_handler(int $errno, string $errstr, string $file, int $line): bool { - /*if (version_compare(PHP_VERSION, '8.0.0', '<')) { + if (version_compare(PHP_VERSION, '8.0.0', '<')) { if (error_reporting() == 0 || !$errno) return false; } else { if (!(error_reporting() & $errno)) return false; } - if (error_reporting() == 0 || !$errno) return false;*/ - $file = substr(str_replace(dirname(__DIR__), "", $file), 1); $context = format_backtrace(debug_backtrace()); |