]> source.dussan.org Git - nextcloud-server.git/commitdiff
Stop processing if PHP 7 is used
authorLukas Reschke <lukas@owncloud.com>
Mon, 26 Oct 2015 16:34:33 +0000 (17:34 +0100)
committerLukas Reschke <lukas@owncloud.com>
Mon, 26 Oct 2015 16:40:00 +0000 (17:40 +0100)
PHP 7 is only compatible with ownCloud 8.2.0

index.php

index 1ab350a2da477652a389c42def61405600b3b17e..4a847c16a49e5e4448586a7435afea0070e07272 100644 (file)
--- 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';