diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-02 16:31:19 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-16 09:43:31 +0100 |
commit | 72baee96988bbd9d3f7d68a90bf716008946000f (patch) | |
tree | 58091042f12c5ce8c38fd5ace5701d5c6e8e33b0 /lib/versioncheck.php | |
parent | 4f7b9cc6b2b775dca053f0fa1423353335c153d1 (diff) | |
download | nextcloud-server-72baee96988bbd9d3f7d68a90bf716008946000f.tar.gz nextcloud-server-72baee96988bbd9d3f7d68a90bf716008946000f.zip |
Allow minor release of PHP 8.1 to be used as well
No reason to allow 8.1.0 and not 8.1.1.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/versioncheck.php')
-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 8aa68dd35fd..3e840ff5b46 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.1 is used as Nextcloud is not compatible with > PHP 8.1 for now -if (PHP_VERSION_ID > 80100) { +// Show warning if >= PHP 8.2 is used as Nextcloud is not compatible with >= PHP 8.2 for now +if (PHP_VERSION_ID >= 80200) { http_response_code(500); - echo 'This version of Nextcloud is not compatible with > PHP 8.1.<br/>'; + echo 'This version of Nextcloud is not compatible with PHP>=8.2.<br/>'; echo 'You are currently running ' . PHP_VERSION . '.'; exit(1); } |