return nonzero exit code when fatal error is triggered in on a CLI SAPI

This commit is contained in:
Andrew Dolgov 2025-07-04 13:17:25 +03:00
parent 7b4f039651
commit c1542671c1
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -84,6 +84,9 @@ function ttrss_fatal_handler(): bool {
return Logger::log_error((int)$errno, $errstr, $file, (int)$line, $context);
}
if (php_sapi_name() == 'cli')
exit(1);
return false;
}