diff options
-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'; |