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@owncloud.com>2015-10-26 19:34:33 +0300
committerLukas Reschke <lukas@owncloud.com>2015-10-26 19:39:35 +0300
commit352d695c95e2476be4627e6dd39fb72ab633b47a (patch)
treefd738b3514b0fc4bde2d03c5e40075a00479f54a
parent50620070009f4573fe3c0411b2b2b3803d88ef91 (diff)
Stop processing if PHP 7 is used
PHP 7 is only compatible with ownCloud 8.2.0
-rw-r--r--index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index 536a55ad6eb..3ac51c9b1bb 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 is used as ownCloud is not compatible with PHP 7 until
+// version 8.2.0.
+if (version_compare(PHP_VERSION, '7.0.0') !== -1) {
+ echo 'This version of ownCloud is not compatible with PHP 7.<br/>';
+ echo 'You are currently running ' . PHP_VERSION . '. Please use at least ownCloud 8.2.0.';
+ return;
+}
+
try {
require_once 'lib/base.php';