Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-10 17:03:02 +0300
committerGitHub <noreply@github.com>2016-08-10 17:03:02 +0300
commitd1b7f50716d2374db584c4c8ff0a657c00d663c1 (patch)
treeed0ee4f184099199f1d989ca5fd1113da5ea1129
parent9dca963283b2708c353d3a48f6b4907210500575 (diff)
parenta6e0935c6acf35fd76bc78f61c99ce3310d5f7a1 (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.php8
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';