PHP7 To Remove Deprecated Functionality

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, January 16, 2015

Follow me on Twitter as @mattiasgeniar

I’m sure this must have been quite an internal-mailinglist-battle, but I’m glad they heard the community and decided to do The Right Thing for PHP, the language.

This RFC proposes to remove functionality which has been deprecated during the 5.x cycle.

All removals have been accepted.

wiki.php.net, RFC to remove deprecated features

Most notably, I believe, are the following deprecated features which will be removed entirely from the PHP7 codebase:

  • ext/mysql: despite it being a very old MySQL extension, I’d reckon it’s still very widely used, but it’s time everyone moved to pdo_mysql.
  • set_magic_quotes_runtime and magic_quotes_runtime: it seems I’ve seen these deprecation notices since … forever?
  • iconv.input_encoding, iconv.output_encoding: so far, I’ve never had a use for these …
  • # style comments in ini files: hooray for consistency, I’ve always preferred ; (semicolon) comments in .ini files!
  • preg_replace() eval modifier: hooray for security-minded sysadmins!

More can be read on the PHP RFC page to remove deprecated functionality in PHP7. I’m all in favor of this vote, good job!

_(PS; if you’re wondering where version 6 of PHP went, have a look here: PHP6: The Missing Version Number)



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.