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:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-27 00:04:14 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-27 00:04:14 +0300
commit74871b167665576578850cce71cf6ab79695cff8 (patch)
treefd738b3514b0fc4bde2d03c5e40075a00479f54a
parent50620070009f4573fe3c0411b2b2b3803d88ef91 (diff)
parent352d695c95e2476be4627e6dd39fb72ab633b47a (diff)
Merge pull request #20064 from owncloud/stable8.1-add-warning-for-php7
[stable8.1] Stop processing if PHP 7 is used
-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';