Skip to content

Commit

Permalink
Merge pull request #825 from nextcloud/add-warning-for-php7.1-stable10
Browse files Browse the repository at this point in the history
[stable10] Nextcloud is not compatible with PHP 7.1
  • Loading branch information
LukasReschke authored Aug 10, 2016
2 parents c79f885 + f629bb8 commit 72d31ac
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 72d31ac

Please sign in to comment.