diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 893bed8eb92..79e3f3b1224 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -16,6 +16,17 @@ function str_starts_with(string $haystack, string $needle): bool { } } +if (!function_exists('openlog')) { + function openlog(string $prefix, int $flags, int $facility): bool { + return false; + } +} +if (!function_exists('syslog')) { + function syslog(int $priority, string $message): bool { + return false; + } +} + // @phpstan-ignore-next-line if (COPY_SYSLOG_TO_STDERR) { openlog('FreshRSS', LOG_CONS | LOG_ODELAY | LOG_PID | LOG_PERROR, LOG_USER);