setting required PHP version to 7.2 and recommended to 7.3

This commit is contained in:
Ralf Becker 2019-07-16 11:00:16 +02:00
parent efcb0471b3
commit 1b002165c4
2 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,6 @@
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de> * @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @package api * @package api
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/ */
use EGroupware\Api\Session; use EGroupware\Api\Session;
@ -30,7 +29,7 @@ if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime())
set_magic_quotes_runtime(false); set_magic_quotes_runtime(false);
} }
$egw_min_php_version = '5.6'; $egw_min_php_version = '7.2';
if (!function_exists('version_compare') || version_compare(PHP_VERSION,$egw_min_php_version) < 0) if (!function_exists('version_compare') || version_compare(PHP_VERSION,$egw_min_php_version) < 0)
{ {
die("EGroupware requires PHP $egw_min_php_version or greater.<br />Please contact your System Administrator to upgrade PHP!"); die("EGroupware requires PHP $egw_min_php_version or greater.<br />Please contact your System Administrator to upgrade PHP!");

View File

@ -64,13 +64,13 @@ class setup
* *
* @var float * @var float
*/ */
var $required_php_version = 5.6; var $required_php_version = 7.2;
/** /**
* PHP Version recommended for eGroupware * PHP Version recommended for eGroupware
* *
* @var string * @var string
*/ */
var $recommended_php_version = '7.0'; var $recommended_php_version = '7.3';
function __construct($html=False, $translation=False) function __construct($html=False, $translation=False)
{ {