Update php version

pull/2487/head
jmontoyaa 7 years ago
parent 033256ec63
commit 9e876293a0
  1. 6
      main/inc/lib/api.lib.php
  2. 9
      main/install/index.php
  3. 2
      main/install/install.lib.php
  4. 4
      main/install/version.php

@ -21,7 +21,7 @@ use Chamilo\CoreBundle\Entity\SettingsCurrent;
*/
// PHP version requirement.
define('REQUIRED_PHP_VERSION', '5.5');
define('REQUIRED_PHP_VERSION', '7.1.3');
define('REQUIRED_MIN_MEMORY_LIMIT', '128');
define('REQUIRED_MIN_UPLOAD_MAX_FILESIZE', '10');
define('REQUIRED_MIN_POST_MAX_SIZE', '10');
@ -767,8 +767,8 @@ function api_get_path($path = '', $configuration = [])
SYS_CSS_PATH => 'app/Resources/public/css/',
SYS_PLUGIN_PATH => 'plugin/',
WEB_PLUGIN_PATH => 'plugin/',
SYS_ARCHIVE_PATH => 'app/cache/',
WEB_ARCHIVE_PATH => 'app/cache/',
SYS_ARCHIVE_PATH => 'var/cache/',
WEB_ARCHIVE_PATH => 'var/cache/',
SYS_HOME_PATH => 'app/home/',
WEB_HOME_PATH => 'app/home/',
REL_HOME_PATH => 'app/home/',

@ -133,7 +133,14 @@ $update_from_version_8 = array(
'1.10.2',
'1.10.4',
'1.10.6',
'1.10.8'
'1.10.8',
'1.11.0',
'1.11.1',
'1.11.2',
'1.11.4',
'1.11.6',
'1.11.8',
'1.11.10',
);
$my_old_version = '';

@ -760,7 +760,7 @@ function display_requirements(
<tr>
<td class="requirements-item">'.get_lang('PHPVersion').' >= '.REQUIRED_PHP_VERSION.'</td>
<td class="requirements-value">';
if (phpversion() < REQUIRED_PHP_VERSION) {
if (version_compare(phpversion(),REQUIRED_PHP_VERSION, '>=') > 1) {
echo '<strong><font color="red">'.get_lang('PHPVersionError').'</font></strong>';
} else {
echo '<strong><font color="green">'.get_lang('PHPVersionOK').' '.phpversion().'</font></strong>';

@ -13,10 +13,10 @@
/**
* Variables used from the main/install/index.php
*/
$new_version = '1.11.6';
$new_version = '2.0.0';
$new_version_status = 'alpha';
$new_version_last_id = 0;
$new_version_stable = false;
$new_version_major = false;
$new_version_major = true;
$software_name = 'Chamilo';
$software_url = 'https://chamilo.org/';

Loading…
Cancel
Save