nextcloud/lib/versioncheck.php
provokateurin a7da9cd596
chore(PHP): Drop 8.2 for Nextcloud 35
Signed-off-by: provokateurin <kate@provokateurin.de>
2026-06-12 11:11:50 +02:00

22 lines
726 B
PHP

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