diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-10 17:03:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-10 17:03:02 +0300 |
commit | d1b7f50716d2374db584c4c8ff0a657c00d663c1 (patch) | |
tree | ed0ee4f184099199f1d989ca5fd1113da5ea1129 | |
parent | 9dca963283b2708c353d3a48f6b4907210500575 (diff) | |
parent | a6e0935c6acf35fd76bc78f61c99ce3310d5f7a1 (diff) |
Merge pull request #826 from nextcloud/add-warning-for-php7.1-stable9
[stable9] Nextcloud is not compatible with PHP 7.1
-rw-r--r-- | index.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php index e9a1b97aae7..5e1832e353e 100644 --- a/index.php +++ b/index.php @@ -33,6 +33,14 @@ if (version_compare(PHP_VERSION, '5.4.0') === -1) { 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'; |