-
Task
-
Resolution: Fixed
-
Minor
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
Based on an Audit of the code, this component has the following uses of ksort without an explicit sort order which means SORT_REGULAR is applied by default and this sort behavior changes in PHP 8.2.
See: https://php.watch/versions/8.2/ksort-SORT_REGULAR-order-changes
Instances:
- ./admin/tool/xmldb/actions/get_db_directories/get_db_directories.class.php: ksort($XMLDB->dbdirs);
- ./admin/tool/behat/renderer.php: ksort($componententities);
- ./admin/tool/behat/cli/run.php: ksort($exitcodes);
- ./admin/tool/behat/cli/util.php: ksort($line);
- ./admin/tool/behat/cli/util.php: ksort($poutput);
- ./admin/tool/filetypes/renderer.php: ksort($combined);
- ./admin/tool/filetypes/classes/utils.php: ksort($icons);
- ./admin/tool/brickfield/classes/accessibility.php: ksort($htmlchecker->guideline->translations);
- ./admin/tool/brickfield/classes/local/tool/printable.php: ksort($combotar);
- ./admin/tool/customlang/locallib.php: ksort($coresubsystems); // Should be but just in case.
- is child of
-
MDL-76409 PHP 8.2: ksort(..., SORT_REGULAR) sort order changes
-
- Closed
-