]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow running Nextcloud with PHP 8.1
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 19 Oct 2021 15:08:57 +0000 (17:08 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 16 Dec 2021 08:43:22 +0000 (09:43 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
lib/versioncheck.php

index 4b1d9dec4d7261ebae8b68eaa23fe1aaf966a73c..8aa68dd35fdd0979a023c00ea0c2990b9797d707 100644 (file)
@@ -33,10 +33,10 @@ if (PHP_VERSION_ID < 70300) {
        exit(1);
 }
 
-// Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now
-if (PHP_VERSION_ID >= 80100) {
+// Show warning if > PHP 8.1 is used as Nextcloud is not compatible with > PHP 8.1 for now
+if (PHP_VERSION_ID > 80100) {
        http_response_code(500);
-       echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>';
+       echo 'This version of Nextcloud is not compatible with > PHP 8.1.<br/>';
        echo 'You are currently running ' . PHP_VERSION . '.';
        exit(1);
 }