-
Task
-
Resolution: Done
-
Minor
-
None
-
4.2
-
MOODLE_402_STABLE
-
1
-
Team Hedgehog 2023 Sprint 1.4
-
Small
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:
- ./mod/quiz/settings.php:core_collator::ksort($reportsbyname);
- ./mod/quiz/settings.php:core_collator::ksort($rulesbyname);
- ./mod/quiz/tests/attempt_walkthrough_from_csv_test.php: ksort($slots);
- ./mod/quiz/tests/external/external_test.php: ksort($result['questiontypes']);
- ./mod/quiz/tests/external/external_test.php: ksort($result['questiontypes']);
- ./mod/quiz/locallib.php: ksort($questions);
- ./mod/quiz/report/statistics/report.php: ksort($ydata[$fieldtoplot]);
- ./mod/quiz/report/reportlib.php: ksort($data);
- is child of
-
MDL-76409 PHP 8.2: ksort(..., SORT_REGULAR) sort order changes
-
- Closed
-