Skip to content

Commit

Permalink
Show warning if PHP 7.2 is used
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
  • Loading branch information
LukasReschke committed Jul 19, 2017
1 parent 336ce13 commit 3d45fee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.php
Expand Up @@ -33,6 +33,14 @@
return;
}

// Show warning if PHP 7.2 is used as Nextcloud is not compatible with PHP 7.2 for now
// @see https://github.com/nextcloud/server/pull/5791
if (version_compare(PHP_VERSION, '7.2.0') !== -1) {
echo 'This version of Nextcloud is not compatible with PHP 7.2.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
return;
}

try {

require_once __DIR__ . '/lib/base.php';
Expand Down

0 comments on commit 3d45fee

Please sign in to comment.