mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-19 01:42:41 -04:00
API: better test for server compatibility
https://github.com/marienfressinaud/FreshRSS/issues/443
This commit is contained in:
1 parent
b5df82c4c7
commit
c88fa62dd8
1 file changed
+7
-3
+7
-3
@@ -110,9 +110,13 @@ function serviceUnavailable() {
|
||||
function checkCompatibility() {
|
||||
logMe("checkCompatibility()\n");
|
||||
header('Content-Type: text/plain; charset=UTF-8');
|
||||
$ok = true;
|
||||
$ok &= function_exists('getallheaders');
|
||||
echo $ok ? 'PASS' : 'FAIL';
|
||||
if (!function_exists('getallheaders')) {
|
||||
die('FAIL getallheaders!');
|
||||
}
|
||||
if (PHP_INT_SIZE < 8 && !function_exists('gmp_init')) {
|
||||
die('FAIL 64-bit or GMP extension!');
|
||||
}
|
||||
echo 'PASS';
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user