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

PHP 8.2: ksort(...) - Messaging

XMLWordPrintable

      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:

      • ./message/tests/privacy/provider_test.php:        ksort($notifications);
      • ./message/tests/privacy/provider_test.php:        ksort($notifications);
      • ./message/tests/externallib_test.php:        ksort($muas);
      • ./message/tests/externallib_test.php:        ksort($muas);
      • ./message/tests/externallib_test.php:        ksort($members);
      • ./message/tests/externallib_test.php:        ksort($members);
      • ./message/tests/api_test.php:        ksort($contacts);
      • ./message/tests/api_test.php:        ksort($muas);
      • ./message/tests/api_test.php:        ksort($muas);
      • ./message/tests/api_test.php:        ksort($members);
      • ./message/tests/api_test.php:        ksort($members);

            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 - 46 minutes
                46m

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