Skip to content
Snippets Groups Projects
Unverified Commit 3021491f authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Drop php 7.1 support


18 will be relased when php7.1 is EOL already. So lets kill it!

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent 4173d9d7
No related branches found
No related tags found
No related merge requests found
<?php
// Show warning if a PHP version below 7.1 is used,
if (version_compare(PHP_VERSION, '7.1') === -1) {
// Show warning if a PHP version below 7.2 is used,
if (version_compare(PHP_VERSION, '7.2') === -1) {
http_response_code(500);
echo 'This version of Nextcloud requires at least PHP 7.1<br/>';
echo 'This version of Nextcloud requires at least PHP 7.2<br/>';
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
exit(-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment