Skip to content

Commit

Permalink
Backup from PHP 7.0.8 to 7.0.7 so that SLES12 SP4 will work
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Mar 7, 2019
1 parent 28281fb commit fe73120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions console.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@

\define('OC_CONSOLE', 1);

// Show warning if a PHP version below 7.0.8 is used, this has to happen here
// Show warning if a PHP version below 7.0.7 is used, this has to happen here
// because base.php will already use 7.0 syntax.
if (\version_compare(PHP_VERSION, '7.0.8') === -1) {
echo 'This version of ownCloud requires at least PHP 7.0.8'.PHP_EOL;
if (\version_compare(PHP_VERSION, '7.0.7') === -1) {
echo 'This version of ownCloud requires at least PHP 7.0.7'.PHP_EOL;
echo 'You are currently running PHP ' . PHP_VERSION . '. Please update your PHP version.'.PHP_EOL;
exit(1);
}
Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
*
*/

// Show warning if a PHP version below 7.0.8 is used, this has to happen here
// Show warning if a PHP version below 7.0.7 is used, this has to happen here
// because base.php will already use 7.0 syntax.
if (\version_compare(PHP_VERSION, '7.0.8') === -1) {
echo 'This version of ownCloud requires at least PHP 7.0.8<br/>';
if (\version_compare(PHP_VERSION, '7.0.7') === -1) {
echo 'This version of ownCloud requires at least PHP 7.0.7<br/>';
echo 'You are currently running PHP ' . PHP_VERSION . '. Please update your PHP version.';
return;
}
Expand Down

0 comments on commit fe73120

Please sign in to comment.