From 4212ffbdac12ce1404f08444ddf547ea3bfd7de3 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 30 Aug 2016 18:26:48 +0200 Subject: [PATCH] Show error if PHP version below 5.6 is used --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index e42a0bbd7b..8db4bf6d4e 100644 --- a/index.php +++ b/index.php @@ -25,10 +25,10 @@ * */ -// Show warning if a PHP version below 5.4.0 is used, this has to happen here -// because base.php will already use 5.4 syntax. -if (version_compare(PHP_VERSION, '5.4.0') === -1) { - echo 'This version of ownCloud requires at least PHP 5.4.0
'; +// Show warning if a PHP version below 5.6.0 is used, this has to happen here +// because base.php will already use 5.6 syntax. +if (version_compare(PHP_VERSION, '5.6.0') === -1) { + echo 'This version of ownCloud requires at least PHP 5.6.0
'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; return; }