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

PHP 8.2: ksort(...) - Core Libs

XMLWordPrintable

    • 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/adodb/drivers/adodb-sqlite3.inc.php:    ksort($pkIndexData['columns']);
      • ./lib/modinfolib.php:        ksort($compressedsections);
      • ./lib/classes/navigation/views/secondary.php:        ksort($nodes);
      • ./lib/classes/filetypes.php:            ksort($defaultvalue);
      • ./lib/classes/filetypes.php:            ksort($modified);
      • ./lib/classes/component.php:        ksort($result);
      • ./lib/classes/component.php:        ksort(self::$classmap);
      • ./lib/classes/plugin_manager.php:            ksort($this->installedplugins[$key]);
      • ./lib/classes/string_manager_standard.php:            ksort($langs);
      • ./lib/classes/string_manager_standard.php:            ksort($langs1);
      • ./lib/ddl/sql_generator.php:        ksort($reserved_words);
      • ./lib/adminlib.php:        ksort($protocols_available);
      • ./lib/navigationlib.php:            ksort($this->collection);
      • ./lib/moodlelib.php:    ksort($valuearray);
      • ./lib/moodlelib.php:        ksort($stats);
      • ./lib/moodlelib.php:        ksort($storetotals);
      • ./lib/enrollib.php:        ksort($plugins);
      • ./lib/enrollib.php:    ksort($changes);
      • ./lib/pdflib.php:        ksort($families);
      • ./lib/ltiprovider/src/ToolProvider/ToolProvider.php:                    ksort($missing);

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 40 minutes
                3h 40m

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