MDL-57432 environment: raise Moodle 3.4 requirements
1) PHP minimum version raised to 7.0.0 2) Intl extension raised from optional to required
This commit is contained in:
@@ -2094,7 +2094,7 @@
|
||||
<VENDOR name="mssql" version="10.0" />
|
||||
<VENDOR name="oracle" version="10.2" />
|
||||
</DATABASE>
|
||||
<PHP version="5.6.5" level="required">
|
||||
<PHP version="7.0.0" level="required">
|
||||
</PHP>
|
||||
<PCREUNICODE level="optional">
|
||||
<FEEDBACK>
|
||||
@@ -2172,9 +2172,9 @@
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="xmlreader" level="required">
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="intl" level="optional">
|
||||
<PHP_EXTENSION name="intl" level="required">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="intlrecommended" />
|
||||
<ON_ERROR message="intlrequired" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="json" level="required">
|
||||
|
||||
@@ -616,6 +616,7 @@ $string['indexinginfo'] = 'The recommended way to index your site\'s contents is
|
||||
$string['installhijacked'] = 'Installation must be finished from the original IP address, sorry.';
|
||||
$string['installsessionerror'] = 'Can not initialise PHP session, please verify that your browser accepts cookies.';
|
||||
$string['intlrecommended'] = 'Intl extension is used to improve internationalization support, such as locale aware sorting.';
|
||||
$string['intlrequired'] = 'Intl extension is required to improve internationalization support, such as locale aware sorting and international domain names.';
|
||||
$string['invalidsection'] = 'Invalid section.';
|
||||
$string['invaliduserchangeme'] = 'Username "changeme" is reserved -- you cannot create an account with it.';
|
||||
$string['ipblocked'] = 'This site is not available currently.';
|
||||
|
||||
@@ -48,8 +48,8 @@ function moodle_minimum_php_version_is_met($haltexecution = false) {
|
||||
// PLEASE NOTE THIS FUNCTION MUST BE COMPATIBLE WITH OLD UNSUPPORTED VERSIONS OF PHP.
|
||||
// Do not use modern php features or Moodle convenience functions (e.g. localised strings).
|
||||
|
||||
$minimumversion = '5.6.5';
|
||||
$moodlerequirementchanged = '3.2';
|
||||
$minimumversion = '7.0.0';
|
||||
$moodlerequirementchanged = '3.4';
|
||||
|
||||
if (version_compare(PHP_VERSION, $minimumversion) < 0) {
|
||||
if ($haltexecution) {
|
||||
|
||||
Reference in New Issue
Block a user