feat: add sanity check for required curl module

This commit is contained in:
Dag 2025-03-26 00:05:40 +01:00
parent 1c45eff505
commit 9c2b4b94ba

View File

@ -5,6 +5,11 @@ if (version_compare(\PHP_VERSION, '7.4.0') === -1) {
exit("RSS-Bridge requires minimum PHP version 7.4\n");
}
if (!extension_loaded('curl')) {
http_response_code(500);
exit("RSS-Bridge requires curl (apt install php-curl)\n");
}
require __DIR__ . '/lib/bootstrap.php';
require __DIR__ . '/lib/config.php';