diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-27 00:04:14 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-27 00:04:14 +0300 |
commit | 74871b167665576578850cce71cf6ab79695cff8 (patch) | |
tree | fd738b3514b0fc4bde2d03c5e40075a00479f54a | |
parent | 50620070009f4573fe3c0411b2b2b3803d88ef91 (diff) | |
parent | 352d695c95e2476be4627e6dd39fb72ab633b47a (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.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'; |