f7cloud_client/lib/versioncheck.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

23 lines
716 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2017 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
// Show warning if a PHP version below 8.1 is used,
if (PHP_VERSION_ID < 80100) {
http_response_code(500);
echo 'This version of F7cloud requires at least PHP 8.1<br/>';
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
exit(1);
}
// Show warning if >= PHP 8.5 is used as F7cloud is not compatible with >= PHP 8.5 for now
if (PHP_VERSION_ID >= 80500) {
http_response_code(500);
echo 'This version of F7cloud is not compatible with PHP>=8.5.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(1);
}