mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-20 20:05:42 +02:00
feat: add sanity check for required curl module (#4495)
This commit is contained in:
parent
9d6aa5ee38
commit
4d8a46d46e
1 changed files with 5 additions and 0 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue