Skip to content

Commit 6df9090

Browse files
committed
Nextcloud runs only on PHP 5.6+
Signed-off-by: Morris Jobke <[email protected]>
1 parent 1ff328a commit 6df9090

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

console.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131

3232
define('OC_CONSOLE', 1);
3333

34-
// Show warning if a PHP version below 5.4.0 is used, this has to happen here
35-
// because base.php will already use 5.4 syntax.
36-
if (version_compare(PHP_VERSION, '5.4.0') === -1) {
37-
echo 'This version of ownCloud requires at least PHP 5.4.0'.PHP_EOL;
34+
// Show warning if a PHP version below 5.6.0 is used, this has to happen here
35+
// because base.php will already use 5.6 syntax.
36+
if (version_compare(PHP_VERSION, '5.6.0') === -1) {
37+
echo 'This version of Nextcloud requires at least PHP 5.6.0'.PHP_EOL;
3838
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'.PHP_EOL;
3939
return;
4040
}

0 commit comments

Comments
 (0)