diff options
author | Andrew Dolgov <[email protected]> | 2022-10-15 13:46:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-10-15 13:46:02 +0300 |
commit | 602e8684258062937d7f554ab7889e8e02318c96 (patch) | |
tree | bc20ca0d4801b1e1b5c97b332f83c738b765367a | |
parent | f56a04964112dce7e3234c01498db817f064b096 (diff) | |
parent | 7eb711eefaac6bfec9c7e3c3306b2aada29a11e2 (diff) |
Merge branch 'master' of git.tt-rss.org:tt-rss/tt-rss
-rw-r--r-- | include/errorhandler.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php index da8e4f29c..ea464f77a 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -43,10 +43,11 @@ function format_backtrace($trace): string { } function ttrss_error_handler(int $errno, string $errstr, string $file, int $line): bool { + // return true in order to avoid default error handling by PHP if (version_compare(PHP_VERSION, '8.0.0', '<')) { - if (error_reporting() == 0 || !$errno) return false; + if (error_reporting() == 0 || !$errno) return true; } else { - if (!(error_reporting() & $errno)) return false; + if (!(error_reporting() & $errno)) return true; } $file = substr(str_replace(dirname(__DIR__), "", $file), 1); |