Skip to content

Commit 0cf4f30

Browse files
committed
console.php also needs a PHP 7.1 check
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent 672c7f4 commit 0cf4f30

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

console.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,19 @@
3434
// Show warning if a PHP version below 5.4.0 is used, this has to happen here
3535
// because base.php will already use 5.4 syntax.
3636
if (version_compare(PHP_VERSION, '5.4.0') === -1) {
37-
echo 'This version of ownCloud requires at least PHP 5.4.0'.PHP_EOL;
37+
echo 'This version of Nextcloud requires at least PHP 5.4.0'.PHP_EOL;
3838
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'.PHP_EOL;
3939
return;
4040
}
4141

42+
// Show warning if PHP 7.1 is used as Nextcloud is not compatible with PHP 7.1 for now
43+
// @see https://github.com/nextcloud/docker-ci/issues/10
44+
if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
45+
echo 'This version of Nextcloud is not compatible with PHP 7.1.<br/>';
46+
echo 'You are currently running ' . PHP_VERSION . '.';
47+
return;
48+
}
49+
4250
function exceptionHandler($exception) {
4351
echo "An unhandled exception has been thrown:" . PHP_EOL;
4452
echo $exception;

0 commit comments

Comments
 (0)