diff options
author | Andrew Dolgov <[email protected]> | 2022-10-01 19:01:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-10-01 19:01:33 +0300 |
commit | c654f02a5354290e528e7fcaa1ee0979b1190fa4 (patch) | |
tree | 31eba5a6f50b224c0c0288f5068bf3840fed21aa /include/errorhandler.php | |
parent | 6cbdbd261eee35bb1d8bb57eb73b1746bbbaa144 (diff) | |
parent | 54942b766403df27063214e3e25d1eeabdca8097 (diff) |
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
Diffstat (limited to 'include/errorhandler.php')
-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()); |