Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77485

PHP 8.2: ksort(...) - Admin Tools

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide

      No testing instructions available.

      Show
      No testing instructions available.

      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.

            david.woloszyn@moodle.com David Woloszyn
            matt.porritt@moodle.com Matt Porritt
            Safat Shahin Safat Shahin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 16 minutes
                2h 16m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.