diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-27 00:04:01 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-27 00:04:01 +0300 |
commit | 8838e072c706611296b2a4e841f92fe5a5c6eafe (patch) | |
tree | 3a2866758e91c2c8f498c60aebf28a48f8abeb0f | |
parent | 6897cbebc05fb4daa6b81daaac9b181120fcf529 (diff) | |
parent | 7e8f3ee28dd658c64197daabd7bde72018bffe69 (diff) |
Merge pull request #20063 from owncloud/stable8-add-warning-for-php-7
[stable8] 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 1ab350a2da4..4a847c16a49 100644 --- a/index.php +++ b/index.php @@ -29,6 +29,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'; |