diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-10 16:02:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-10 16:02:52 +0200 |
commit | d06724c2db0429c746671714deaec32eb03be0bd (patch) | |
tree | a4e22e0a113ed8ffd33b101263f57e069372fe5e | |
parent | 219f36d2616126684f34372e36f3c76355a78aa7 (diff) | |
parent | c59c4623449de23369bd63ee654f54ba6be1109d (diff) | |
download | nextcloud-server-d06724c2db0429c746671714deaec32eb03be0bd.tar.gz nextcloud-server-d06724c2db0429c746671714deaec32eb03be0bd.zip |
Merge pull request #824 from nextcloud/add-warning-for-php7.1
Nextcloud is not compatible with PHP 7.1
-rw-r--r-- | index.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php index 2b344dadfff..e42a0bbd7bc 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.1 is used as Nextcloud is not compatible with PHP 7.1 for now +// @see https://github.com/nextcloud/docker-ci/issues/10 +if (version_compare(PHP_VERSION, '7.1.0') !== -1) { + echo 'This version of Nextcloud is not compatible with PHP 7.1.<br/>'; + echo 'You are currently running ' . PHP_VERSION . '.'; + return; +} + try { require_once 'lib/base.php'; |