diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-19 17:08:57 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-16 09:43:22 +0100 |
commit | 260be93a14af6eccb6240dfb3692073775da259e (patch) | |
tree | 6b5a1ac64d982a9ad7bd117c8c73ec32dc4d82e4 /lib | |
parent | 55219acb4e964863b301028d47a496fa5d235456 (diff) | |
download | nextcloud-server-260be93a14af6eccb6240dfb3692073775da259e.tar.gz nextcloud-server-260be93a14af6eccb6240dfb3692073775da259e.zip |
Allow running Nextcloud with PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/versioncheck.php | 6 |
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); } |