---
title: "Breaking: #72342 - Removed deprecated code from GeneralUtility"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-72342"
source: "Changelog/8.0/Breaking-72342-RemovedDeprecatedCodeFromGeneralUtility.rst"
typo3-version: "8.0"
typo3-major: 8
type: "breaking"
issue: 72342
forge: "https://forge.typo3.org/issues/72342"
tags: ["PHP-API"]
rendered: "2026-09-23T19:53:57+00:00"
---

# Breaking: #72342 - Removed deprecated code from GeneralUtility {#breaking-72342}

See [forge#72342](https://forge.typo3.org/issues/72342)

## Description {#description}

The following methods have been removed from `GeneralUtility`

`gif_compress()`
`png_to_gif_by_imagemagick()`
`read_png_gif()`
`modifyHTMLColor()`
`modifyHTMLColorAll()`
`isBrokenEmailEnvironment()`
`normalizeMailAddress()`
`formatForTextarea()`
`inArray()`
`removeArrayEntryByValue()`
`keepItemsInArray()`
`addSlashesOnArray()`
`stripSlashesOnArray()`
`slashArray()`
`remapArrayKeys()`
`array_merge()`
`arrayDiffAssocRecursive()`
`naturalKeySortRecursive()`
`getThisUrl()`
`readLLfile()`
`quoted_printable()`
`encodeHeader()`
`substUrlsInPlainText()`
`cleanOutputBuffers()`

## Impact {#impact}

Using the methods above directly in any third party extension will result in a fatal error.

## Affected Installations {#affected-installations}

Instances which use calls to the methods above.

## Migration {#migration}

For `gif_compress()` use `TYPO3CMSCoreImagingGraphicalFunctions::gifCompress()` instead.
For `png_to_gif_by_imagemagick()` use `TYPO3CMSCoreImagingGraphicalFunctions::pngToGifByImagemagick()` instead.
For `read_png_gif()` use `TYPO3CMSCoreImagingGraphicalFunctions::readPngGif()` instead.
For `inArray()` use `ArrayUtility::inArray()` instead.
For `removeArrayEntryByValue()` use `ArrayUtility::removeArrayEntryByValue()` instead.
For `keepItemsInArray()` use `ArrayUtility::keepItemsInArray()` instead.
For `remapArrayKeys()`  use `ArrayUtility::remapArrayKeys()` instead.
For `array_merge()` use native php '+' operator instead.
For `arrayDiffAssocRecursive()` use `ArrayUtility::arrayDiffAssocRecursive()` instead.
For `naturalKeySortRecursive()` use `ArrayUtility::naturalKeySortRecursive()` instead.
For `getThisUrl()` use `GeneralUtility::getIndpEnv*` instead.
For `quoted_printable()` use mailer API instead.
For `encodeHeader()` use mailer API instead.
For `substUrlsInPlainText()` use mailer API instead.
For `cleanOutputBuffers()` use ob\_\* functions directly or `self::flushOutputBuffers.`
