Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Done
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
1
-
Team Hedgehog 2023 Sprint 1.3
-
Small
Description
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/tcpdf/include/tcpdf_fonts.php: ksort($subsetchars);
- ./lib/tcpdf/include/tcpdf_fonts.php: ksort($subsetglyphs);
- ./lib/tcpdf/include/tcpdf_fonts.php: ksort($font['cw']);
- ./lib/tcpdf/include/barcodes/datamatrix.php: ksort($log);
- ./lib/tcpdf/include/barcodes/datamatrix.php: ksort($c);
- ./lib/tcpdf/include/barcodes/datamatrix.php: ksort($wd);
- ./lib/tcpdf/include/tcpdf_images.php: ksort($icc);
Attachments
Issue Links
- is child of
-
MDL-76409 PHP 8.2: ksort(..., SORT_REGULAR) sort order changes
-
- Closed
-