Allow PHP 8.3 in version check

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-08-10 15:52:20 +02:00 committed by Daniel
parent ee590ab5a9
commit 1daa881b03
1 changed files with 3 additions and 3 deletions

View File

@ -33,10 +33,10 @@ if (PHP_VERSION_ID < 80000) {
exit(1);
}
// Show warning if >= PHP 8.3 is used as Nextcloud is not compatible with >= PHP 8.3 for now
if (PHP_VERSION_ID >= 80300) {
// Show warning if >= PHP 8.4 is used as Nextcloud is not compatible with >= PHP 8.4 for now
if (PHP_VERSION_ID >= 80400) {
http_response_code(500);
echo 'This version of Nextcloud is not compatible with PHP>=8.3.<br/>';
echo 'This version of Nextcloud is not compatible with PHP>=8.4.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(1);
}