Allow to also use PHP 8.0

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-09-10 11:50:42 +02:00 committed by Joas Schilling
parent fd1c2ef698
commit cfd67fd18b
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 3 additions and 3 deletions

View File

@ -30,10 +30,10 @@ if (PHP_VERSION_ID < 70300) {
exit(-1); exit(-1);
} }
// Show warning if > PHP 7.4 is used as Nextcloud is not compatible with > PHP 7.4 for now // Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now
if (PHP_VERSION_ID >= 70500) { if (PHP_VERSION_ID >= 80100) {
http_response_code(500); 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 . '.'; echo 'You are currently running ' . PHP_VERSION . '.';
exit(-1); exit(-1);
} }