Skip to content
Snippets Groups Projects
Unverified Commit 4c19e75f authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #7390 from nextcloud/update-php-info

Show hint that PHP 5.6 will not be supported in Nextcloud 14 anymore
parents 5724e758 ace96a40
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,12 @@
type: OC.SetupChecks.MESSAGE_TYPE_INFO
});
}
if(data.phpSupported && data.phpSupported.version.substr(0, 3) === '5.6') {
messages.push({
msg: t('core', 'You are currently running PHP 5.6. The current major version of Nextcloud is the last that is supported on PHP 5.6. It is recommended to upgrade the PHP version to 7.0+ to be able to upgrade to Nextcloud 14.'),
type: OC.SetupChecks.MESSAGE_TYPE_INFO
});
}
if(!data.forwardedForHeadersWorking) {
messages.push({
msg: t('core', 'The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud. Further information can be found in the <a target="_blank" rel="noreferrer noopener" href="{docLink}">documentation</a>.', {docLink: data.reverseProxyDocs}),
......
......@@ -238,7 +238,7 @@ class CheckSetupController extends Controller {
* @return bool
*/
protected function isPhpOutdated() {
if (version_compare(PHP_VERSION, '5.5.0') === -1) {
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment