[!!!][TASK] Remove deprecated code from GeneralUtility
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Breaking-72342-RemovedDeprecatedCodeFromGeneralUtility.rst
1 ==============================================================
2 Breaking: #72342 - Removed deprecated code from GeneralUtility
3 ==============================================================
4
5 Description
6 ===========
7
8 The following methods have been removed from ``GeneralUtility``
9
10 ``gif_compress``
11 ``png_to_gif_by_imagemagick``
12 ``read_png_gif``
13 ``modifyHTMLColor``
14 ``modifyHTMLColorAll``
15 ``isBrokenEmailEnvironment``
16 ``normalizeMailAddress``
17 ``formatForTextarea``
18 ``inArray``
19 ``removeArrayEntryByValue``
20 ``keepItemsInArray``
21 ``addSlashesOnArray``
22 ``stripSlashesOnArray``
23 ``slashArray``
24 ``remapArrayKeys``
25 ``array_merge``
26 ``arrayDiffAssocRecursive``
27 ``naturalKeySortRecursive``
28 ``getThisUrl``
29 ``readLLfile``
30 ``quoted_printable``
31 ``encodeHeader``
32 ``substUrlsInPlainText``
33 ``cleanOutputBuffers``
34
35 `
36 Impact
37 ======
38
39 Using the methods above directly in any third party extension will result in a fatal error.
40
41
42 Affected Installations
43 ======================
44
45 Instances which use calls to the methods above.
46
47
48 Migration
49 =========
50
51 For ``gif_compress`` use \TYPO3\CMS\Core\Imaging\GraphicalFunctions::gifCompress() instead.
52 For ``png_to_gif_by_imagemagick`` use ``\TYPO3\CMS\Core\Imaging\GraphicalFunctions::pngToGifByImagemagick()`` instead.
53 For ``read_png_gif`` use ``\TYPO3\CMS\Core\Imaging\GraphicalFunctions::readPngGif()`` instead.
54 For ``inArray`` use ``ArrayUtility::inArray()`` instead.
55 For ``removeArrayEntryByValue`` use ``ArrayUtility::removeArrayEntryByValue()`` instead.
56 For ``keepItemsInArray`` use ``ArrayUtility::keepItemsInArray()`` instead.
57 For ``remapArrayKeys`` use ``ArrayUtility::remapArrayKeys()`` instead.
58 For ``array_merge`` use native php '+' operator instead.
59 For ``arrayDiffAssocRecursive`` use ``ArrayUtility::arrayDiffAssocRecursive()`` instead.
60 For ``naturalKeySortRecursive`` use ``ArrayUtility::naturalKeySortRecursive()`` instead.
61 For ``getThisUrl`` use ``GeneralUtility::getIndpEnv*`` instead.
62 For ``quoted_printable`` use mailer API instead.
63 For ``encodeHeader`` use mailer API instead.
64 For ``substUrlsInPlainText`` use mailer API instead.
65 For ``cleanOutputBuffers`` use ob_* functions directly or self::flushOutputBuffers.