Make 'ttrss_error_handler' compatible w/ 8.
2d467abc46/UPGRADING (L43)
2d467abc46/UPGRADING (L63)
This commit is contained in:
parent
936b91a7e6
commit
c68f2aabc9
|
@ -31,7 +31,13 @@ function format_backtrace($trace) {
|
||||||
return $rv;
|
return $rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ttrss_error_handler($errno, $errstr, $file, $line, $context) {
|
function ttrss_error_handler($errno, $errstr, $file, $line) {
|
||||||
|
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;
|
if (error_reporting() == 0 || !$errno) return false;
|
||||||
|
|
||||||
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
|
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
|
||||||
|
|
Loading…
Reference in New Issue