2017-10-13 19:30:29 +00:00
|
|
|
<?php
|
|
|
|
|
2019-11-21 14:55:19 +00:00
|
|
|
// Show warning if a PHP version below 7.2 is used,
|
2019-11-30 15:49:29 +00:00
|
|
|
if (PHP_VERSION_ID < 70200) {
|
2017-10-13 19:30:29 +00:00
|
|
|
http_response_code(500);
|
2019-11-21 14:55:19 +00:00
|
|
|
echo 'This version of Nextcloud requires at least PHP 7.2<br/>';
|
2017-10-13 19:30:29 +00:00
|
|
|
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
|
|
|
|
exit(-1);
|
|
|
|
}
|
|
|
|
|
2019-11-21 08:16:42 +00:00
|
|
|
// Show warning if > PHP 7.4 is used as Nextcloud is not compatible with > PHP 7.4 for now
|
2019-11-30 15:49:29 +00:00
|
|
|
if (PHP_VERSION_ID >= 70500) {
|
2017-10-13 19:30:29 +00:00
|
|
|
http_response_code(500);
|
2019-11-21 08:16:42 +00:00
|
|
|
echo 'This version of Nextcloud is not compatible with > PHP 7.4.<br/>';
|
2017-10-13 19:30:29 +00:00
|
|
|
echo 'You are currently running ' . PHP_VERSION . '.';
|
|
|
|
exit(-1);
|
|
|
|
}
|