Merged in feature/HOR-4667 (pull request #6519)

HOR-4667

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2018-06-22 14:22:31 +00:00
committed by Julio Cesar Laura Avendaño
4 changed files with 11 additions and 5 deletions

View File

@@ -13,6 +13,8 @@ include PATH_LANGUAGECONT . "translation." . SYS_LANG;
class InstallerModule extends Controller
{
const PHP_VERSION_MINIMUM_SUPPORTED = '5.6';
const PHP_VERSION_NOT_SUPPORTED = '7.2';
public $path_config;
public $path_languages;
public $path_plugins;
@@ -206,7 +208,9 @@ class InstallerModule extends Controller
$info->memory = new stdclass();
$info->php->version = $phpVer;
$info->php->result = version_compare(phpversion(), '5.6', '>=');
$info->php->result = (
version_compare(phpversion(), self::PHP_VERSION_MINIMUM_SUPPORTED, '>=') &&
version_compare(phpversion(), self::PHP_VERSION_NOT_SUPPORTED, '<')) ? true : false;
// MYSQL info and verification
$info->mysql->result = false;