I just finished reading an article over at phpclasses.org that talks about “the plot to kill the PHP MySQL Extension”. In that article, Manuel Lemos (the author) describes the call to have the MySQL extension removed entirely from future releases of PHP. If this happens, it won’t happen immediately. Instead, the extension will be deprecated for a while which will lead to warnings being written to your logs showing E_DEPRECATED notices. Then, at some point, method calls such as “mysql_connect” and “mysql_query” will no longer work at all.
Personally, I think this is a terrible idea. Built-in MySQL functionality is one of the things that drove me to PHP in the first place. Not to mention, I have hundreds if not thousands of websites I’ve created over the years that all rely on this extension. If the host providers for those sites upgrade PHP to a version that no longer supports this extension, I’m going to have a lot of pissed off customers. I’ve had it happen before where one day things are working perfectly and then the next day they’re not and it’s all because of an upgrade that went in overnight. However, this move could take those pains to an all new level.
Plus, think about all of the books that are out there right now that teach PHP with the MySQL extension. I have at least 10 books in my bookcase that teaches to use the MySQL extension. All of those books would also become obsolete.
Be sure to checkout the original article at http://www.phpclasses.org/blog/post/153-The-Plot-to-Kill-PHP-MySQL-Extension.html. Also, be sure to let us know in the comments below what you think about this move. If Facebook had a “dis-like” button, I’d be clicking it right now!
PayPal will open in a new tab.