Skip to content

Commit

Permalink
console.php also needs a PHP 7.1 check
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Oct 25, 2016
1 parent 672c7f4 commit 54e5276
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions console.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
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;
}

function exceptionHandler($exception) {
echo "An unhandled exception has been thrown:" . PHP_EOL;
echo $exception;
Expand Down

0 comments on commit 54e5276

Please sign in to comment.