Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-19 18:08:57 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 11:43:22 +0300
commit260be93a14af6eccb6240dfb3692073775da259e (patch)
tree6b5a1ac64d982a9ad7bd117c8c73ec32dc4d82e4 /lib/versioncheck.php
parent55219acb4e964863b301028d47a496fa5d235456 (diff)
Allow running Nextcloud with PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/versioncheck.php')
-rw-r--r--lib/versioncheck.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/versioncheck.php b/lib/versioncheck.php
index 4b1d9dec4d7..8aa68dd35fd 100644
--- a/lib/versioncheck.php
+++ b/lib/versioncheck.php
@@ -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);
}