MDL-73700 environment: Remove the deprecated igbinary322_version check
As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up to PHP 8.1 we can now remove the check PHP version 7.2 in combination with the igbinary extension version. Signed-off-by: Daniel Ziegenberg <[email protected]>
This commit is contained in:
@@ -933,3 +933,35 @@ function question_delete_course_category($category, $newcategory, $notused = fal
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the igbinary extension installed is buggy one
|
||||
*
|
||||
* There are a few php-igbinary versions that are buggy and
|
||||
* return any unserialised array with wrong index. This defeats
|
||||
* key() and next() operations on them.
|
||||
*
|
||||
* This library is used by MUC and also by memcached and redis
|
||||
* when available.
|
||||
*
|
||||
* Let's inform if there is some problem when:
|
||||
* - php 7.2 is being used (php 7.3 and up are immune).
|
||||
* - the igbinary extension is installed.
|
||||
* - the version of the extension is between 3.2.2 and 3.2.4.
|
||||
* - the buggy behaviour is reproduced.
|
||||
*
|
||||
* @param environment_results $result object to update, if relevant.
|
||||
* @return environment_results|null updated results or null.
|
||||
*
|
||||
* @deprecated Since Moodle 5.0
|
||||
* @todo Final deprecation on Moodle 6.0. See MDL-83675.
|
||||
*/
|
||||
#[\core\attribute\deprecated(
|
||||
since: '5.0',
|
||||
mdl: 'MDL-73700',
|
||||
reason: 'Remove all the old php version checks from core',
|
||||
)]
|
||||
function check_igbinary322_version(environment_results $result) {
|
||||
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user