# Removed Features

> Section in “Backward Incompatible Changes” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/backward-incompatible-changes/removed-features/>

One of the most important skills that software maintainer have to master is to remove things. Only adding on new features to any software will create bloat and make the whole project increasingly hard to maintain.

Any features that get removed from PHP either have always been problematic, or they have turned problematic, or they have been unmaintained for a considerable amount of time, or are based on unmaintained third-party code. Rest assured that nobody ever will remove a feature from the PHP language to annoy its users, or randomly cause additional work for application developers. Every removed features listed in this chapter has been removed for a good reason, and usually PHP developers have been warned ahead of time through deprecation messages.

If you happen to (still) use one or more of the removed features, there is always a workaround that we will describe. When migrating to PHP 7 from some older version of PHP, the removed features listed in this chapter should be one of the first things to address, since usually the suggested workaround will already work in older PHP versions. Rather than upgrading to PHP 7 and seeing your software break, you should address removed features proactively.

## In this section

- [Operating System and Web Server](https://php7explained.com/backward-incompatible-changes/removed-features/operating-system-and-web-server/index.html.md): PHP 7 drops Server APIs such as apache, isapi and nsapi and disables dl() in PHP-FPM; PHP 7.2 ends support for older Windows versions and NetWare.
- [Language Features](https://php7explained.com/backward-incompatible-changes/removed-features/language-features/index.html.md): Language features removed in PHP 7: magic quotes, assigning the result of new by reference, ASP tags, call_user_method(), xsl.security_prefs and wddx.
- [Regular Expressions](https://php7explained.com/backward-incompatible-changes/removed-features/regular-expressions/index.html.md): Removed regular expression features: the /e modifier of preg_replace() in PHP 7, the eval option of mb_ereg_replace() in PHP 7.1, and the split() function.
- [Internationalisation and Unicode](https://php7explained.com/backward-incompatible-changes/removed-features/internationalisation-and-unicode/index.html.md): PHP 7 removes string categories for setlocale() and the deprecated intl aliases for setting a time zone by identifier; the recode extension is unbundled.
- [I/O and Filesystem](https://php7explained.com/backward-incompatible-changes/removed-features/io-and-filesystem/index.html.md): Removed I/O features: $HTTP_RAW_POST_DATA, trailing hash-sign comments in ini files, unsafe curl uploads, sql.safe_mode and the MySQLi embedded server.
- [Graphics](https://php7explained.com/backward-incompatible-changes/removed-features/graphics/index.html.md): The gd extension no longer supports PostScript Type1 fonts, so imagepsloadfont(), imagepstext() and related functions must be replaced by TrueType text.

---

Previous: [Backward Incompatible Changes](https://php7explained.com/backward-incompatible-changes/index.html.md) | Next: [Operating System and Web Server](https://php7explained.com/backward-incompatible-changes/removed-features/operating-system-and-web-server/index.html.md)
