diff options
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 2 | ||||
-rw-r--r-- | core/js/setupchecks.js | 8 | ||||
-rw-r--r-- | core/js/tests/specs/setupchecksSpec.js | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index 82a7e118d06..abe76e47c9e 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -330,7 +330,7 @@ class CheckSetupController extends Controller { * @return bool */ protected function isPhpOutdated(): bool { - return PHP_VERSION_ID < 80000; + return PHP_VERSION_ID < 80100; } /** diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index b2d021c6265..732c34131c3 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -300,6 +300,14 @@ msg: t('core', 'You are currently running PHP {version}. Upgrade your PHP version to take advantage of {linkstart}performance and security updates provided by the PHP Group ↗{linkend} as soon as your distribution supports it.', { version: data.phpSupported.version }) .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="https://secure.php.net/supported-versions.php">') .replace('{linkend}', '</a>'), + type: OC.SetupChecks.MESSAGE_TYPE_WARNING + }) + } + if (data.phpSupported && data.phpSupported.version.substr(0, 3) === '8.0') { + messages.push({ + msg: t('core', 'PHP 8.0 is now deprecated in Nextcloud 27. Nextcloud 28 may require at least PHP 8.1. Please upgrade to {linkstart}one of the officially supported PHP versions provided by the PHP Group ↗{linkend} as soon as possible.') + .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="https://secure.php.net/supported-versions.php">') + .replace('{linkend}', '</a>'), type: OC.SetupChecks.MESSAGE_TYPE_INFO }) } diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js index 57536c59569..2c44de58f9e 100644 --- a/core/js/tests/specs/setupchecksSpec.js +++ b/core/js/tests/specs/setupchecksSpec.js @@ -877,7 +877,7 @@ describe('OC.SetupChecks tests', function() { async.done(function( data, s, x ){ expect(data).toEqual([{ msg: 'You are currently running PHP 5.4.0. Upgrade your PHP version to take advantage of <a target="_blank" rel="noreferrer noopener" class="external" href="https://secure.php.net/supported-versions.php">performance and security updates provided by the PHP Group ↗</a> as soon as your distribution supports it.', - type: OC.SetupChecks.MESSAGE_TYPE_INFO + type: OC.SetupChecks.MESSAGE_TYPE_WARNING }]); done(); }); |