MDL-76441 env: Moodle 4.2.x and 4.3.x do not support PHP 8.3

This commit is contained in:
Eloy Lafuente (stronk7) 2024-02-02 11:26:20 +01:00
parent d3ad77e476
commit 97a69a8360
No known key found for this signature in database
GPG Key ID: 53487A05E6228820
3 changed files with 14 additions and 0 deletions

View File

@ -3939,6 +3939,7 @@
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="8.0.0" level="required">
<RESTRICT function="restrict_php_version_83" message="unsupportedphpversion83" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@ -4128,6 +4129,7 @@
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="8.0.0" level="required">
<RESTRICT function="restrict_php_version_83" message="unsupportedphpversion83" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>

View File

@ -1502,6 +1502,7 @@ $string['unsupportedphpversion74'] = 'PHP version 7.4 and higher are not support
$string['unsupportedphpversion80'] = 'PHP version 8.0 and higher are not supported.';
$string['unsupportedphpversion81'] = 'PHP version 8.1 and higher are not supported.';
$string['unsupportedphpversion82'] = 'PHP version 8.2 and higher are not supported.';
$string['unsupportedphpversion83'] = 'PHP version 8.3 and higher are not supported.';
$string['unsuspenduser'] = 'Activate user account';
$string['updateaccounts'] = 'Update existing accounts';
$string['updatecomponent'] = 'Update component';

View File

@ -1686,3 +1686,14 @@ function restrict_php_version_81($result) {
function restrict_php_version_82($result) {
return restrict_php_version($result, '8.2');
}
/**
* Check if the current PHP version is greater than or equal to
* PHP version 8.3
*
* @param object $result an environment_results instance
* @return bool result of version check
*/
function restrict_php_version_83($result) {
return restrict_php_version($result, '8.3');
}