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:03:45 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-27 00:03:45 +0300
commit65ba58d2a449f37b404dba445968b5bbf0298125 (patch)
tree25cd00aef23a0899db41727765f37e4e78677d71
parentdf9b8cdd7f402271ed1c905970f4c41c39aa8dbc (diff)
parent48a2e343e0e18b578fb6d576736464bdd7a05967 (diff)
Merge pull request #20062 from owncloud/stable7-add-warning-for-php7
[stable7] 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 061391892fe..1fd49ca4b6c 100644
--- a/index.php
+++ b/index.php
@@ -21,6 +21,14 @@
*
*/
+// 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';