diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-12-19 15:29:52 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-12-19 15:31:24 +0100 |
commit | 1741fe0310702a206b9793314478393df5bbb713 (patch) | |
tree | e082263ec77d8e03fe4a147a82f42d2044994ea2 /cron.php | |
parent | 9b71ee27ff95336c36d608217d9621110e6674c1 (diff) | |
download | nextcloud-server-1741fe0310702a206b9793314478393df5bbb713.tar.gz nextcloud-server-1741fe0310702a206b9793314478393df5bbb713.zip |
Also check in cron for old php version
Fixes #2756
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -30,6 +30,13 @@ * */ +// Show warning if a PHP version below 5.6.0 is used +if (version_compare(PHP_VERSION, '5.6.0') === -1) { + echo 'This version of Nextcloud requires at least PHP 5.6.0<br/>'; + echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; + return; +} + try { require_once __DIR__ . '/lib/base.php'; |