-
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:
- ./lib/tests/component_test.php: ksort($sortedapis); // We'll need this later.
- ./lib/tests/collator_test.php: $result = core_collator::ksort($arr);
- ./lib/tests/collator_test.php: core_collator::ksort($b);
- ./lib/filestorage/tests/file_storage_test.php: ksort($originalrecord);
- ./lib/behat/classes/behat_config_util.php: ksort($cleanfeatures);
- ./lib/behat/classes/behat_config_util.php: ksort($this->contexts);
- ./lib/behat/classes/behat_config_util.php: ksort($themes);
- ./lib/behat/classes/behat_config_util.php: ksort($dirs);
- ./lib/behat/classes/behat_config_util.php: ksort($features);
- ./lib/testing/classes/tests_finder.php: ksort($plugintypes);
- ./lib/testing/classes/tests_finder.php: ksort($plugs);
- ./lib/testing/classes/tests_finder.php: ksort($subsystems);
- ./lib/testing/classes/tests_finder.php: ksort($dirs);
- ./lib/phpunit/classes/util.php: ksort($plugintypes);
- ./lib/phpunit/classes/util.php: ksort($plugs);
- is child of
-
MDL-76409 PHP 8.2: ksort(..., SORT_REGULAR) sort order changes
-
- Closed
-