diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-27 00:03:45 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-27 00:03:45 +0300 |
commit | 65ba58d2a449f37b404dba445968b5bbf0298125 (patch) | |
tree | 25cd00aef23a0899db41727765f37e4e78677d71 | |
parent | df9b8cdd7f402271ed1c905970f4c41c39aa8dbc (diff) | |
parent | 48a2e343e0e18b578fb6d576736464bdd7a05967 (diff) |
Merge pull request #20062 from owncloud/stable7-add-warning-for-php7
[stable7] Stop processing if PHP 7 is used
-rw-r--r-- | index.php | 8 |
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'; |