Skip to content

Commit

Permalink
[stable10] Nextcloud is not compatible with PHP 7.1
Browse files Browse the repository at this point in the history
Make the code fail hard before people update and then experience some half-broken stuff. See also nextcloud/docker-ci#10
  • Loading branch information
LukasReschke committed Aug 10, 2016
1 parent 5d11b5b commit f629bb8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
return;
}

// Show warning if PHP 7.1 is used as Nextcloud is not compatible with PHP 7.1 for now
// @see https://github.com/nextcloud/docker-ci/issues/10
if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
echo 'This version of Nextcloud is not compatible with PHP 7.1.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
return;
}

try {

require_once 'lib/base.php';
Expand Down

0 comments on commit f629bb8

Please sign in to comment.