diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-26 19:34:33 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-26 19:39:35 +0300 |
commit | 352d695c95e2476be4627e6dd39fb72ab633b47a (patch) | |
tree | fd738b3514b0fc4bde2d03c5e40075a00479f54a | |
parent | 50620070009f4573fe3c0411b2b2b3803d88ef91 (diff) |
Stop processing if PHP 7 is used
PHP 7 is only compatible with ownCloud 8.2.0
-rw-r--r-- | index.php | 8 |
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'; |