summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-12-19 15:29:52 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-12-19 15:31:24 +0100
commit1741fe0310702a206b9793314478393df5bbb713 (patch)
treee082263ec77d8e03fe4a147a82f42d2044994ea2 /cron.php
parent9b71ee27ff95336c36d608217d9621110e6674c1 (diff)
downloadnextcloud-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.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index 6fdc7cb24d3..c8eed3afbe7 100644
--- a/cron.php
+++ b/cron.php
@@ -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';