diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-09-10 11:50:42 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-18 09:16:30 +0200 |
commit | cfd67fd18bb84760b6c5651acc22885e3e8b8196 (patch) | |
tree | bdc94d9ec5e0b0fe78ac486bb169ae32bb4664fa /lib/versioncheck.php | |
parent | fd1c2ef698ae1471019fd499e09cdfb0e95989ae (diff) | |
download | nextcloud-server-cfd67fd18bb84760b6c5651acc22885e3e8b8196.tar.gz nextcloud-server-cfd67fd18bb84760b6c5651acc22885e3e8b8196.zip |
Allow to also use PHP 8.0
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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 2f761ba6e37..89a43790cf1 100644 --- a/lib/versioncheck.php +++ b/lib/versioncheck.php @@ -30,10 +30,10 @@ if (PHP_VERSION_ID < 70300) { exit(-1); } -// Show warning if > PHP 7.4 is used as Nextcloud is not compatible with > PHP 7.4 for now -if (PHP_VERSION_ID >= 70500) { +// Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now +if (PHP_VERSION_ID >= 80100) { http_response_code(500); - echo 'This version of Nextcloud is not compatible with > PHP 7.4.<br/>'; + echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>'; echo 'You are currently running ' . PHP_VERSION . '.'; exit(-1); } |