diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-10 15:28:50 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-08-10 15:28:50 +0300 |
commit | a6e0935c6acf35fd76bc78f61c99ce3310d5f7a1 (patch) | |
tree | ed0ee4f184099199f1d989ca5fd1113da5ea1129 | |
parent | 9dca963283b2708c353d3a48f6b4907210500575 (diff) |
[stable9] Nextcloud is not compatible with PHP 7.1
Make the code fail hard before people update and then experience some half-broken stuff. See also https://github.com/nextcloud/docker-ci/issues/10
-rw-r--r-- | index.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php index e9a1b97aae7..5e1832e353e 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'; |