July 14th, 2007

The PHP group has announced end of support for PHP4 and encouraging everyone to move on up to PHP5.

Wordpress Matt isn't happy with PHP5 and believes such a move should happen when PHP6 goes beta. I think the point really is that the PHP group can't move forward on PHP6, while still trapped in support for PHP4.

I'm actually not unhappy at PHP5, though I do still tend to develop in PHP4 mindset. In Matt's comments, Michael Moncur wrote:

I think every language reaches a point in its development where it’s “good enough” - and it becomes popular. Advancing the language after that is often a matter strictly for the hardcore programmers and academics, and the versions they create after that point are rarely widely adopted.

I’m not sure what the solution is, but app developers shooting themselves in the foot is unlikely to be it.

Personally I’ve avoided upgrading to PHP5 mostly because PHP4 is “good enough” and runs the apps I need (and the ones I wrote myself). I guess I’ll eventually be dragged into the upgrade kicking and screaming like I was with Apache 2.0. And MySQL 5. And Perl 5 and 6. And…

If you want to talk about the king of slow upgrades, Apache 2.0 is the winner, by far. I never thought much about Perl because I rarely work with it nowadays. However, the MySQL upgrades have been drastically different. Each new version of MySQL brings with it desperately needed and wanted functionality. I think the only hold back on upgrades with this database is how ubiquitous it is, and how hesitant people are with using 'new' database releases.

My hosted environment is running PHP5 and MySQL 5, and my main development machine, the last of the Powerbook G4s, runs Apache 2, PHP5, and MySQL 5 (installed via Darwin/Mac Ports). For the most part, I've not had any software that required earlier versions of any of these applications. Whatever I work on for my own amusement and interest works for PHP5 and MySQL 5; I don't test with earlier versions. Good or bad, that's a choice I made with host and with my own setup (I could run multiple versions for testing, but I don't choose to). For my contract work, I'll work in whatever environment I'm given.

The Go PHP5 effort should help make the point that apps need to move forward. Matt may think the site is corny, and that PHP4 being dropped is a no story, and that PHP5 is awful/nasty, but the news release and the site get the point across–like it or not, PHP4 is going away.

Now, if we can only make earlier versions of IE–such as IE 6.x–vanish, I would be happy.

Bonus link: PHP MVC Frameworks and their PHP4/PHP5 compatibility.

Comments
1
ralph - 4:36 pm July 14, 2007

I've tended to keep my development environment in synch with whatever my host, Pair, supports. I just got e-mail today telling me that they're upgrading my server to BSD 6.2, which shouldn't be a problem, and in the process are upgrading from Apache 1.3.something to 2.2.something and making PHP 5.something the default for PHP rather than 4.something. I don't think this will be a problem for my site, but it's a message that I need to start working on upgrading another site that I host on Pair, because I built it around WordPress 1.5.x and according to Pair, the earliest version of WP that PHP 5 supports is 2.1. I've tried moving the site in question to WP 2.x, but the changes in .htaccess redirection in 2.x totally hosed my heavily-customized site. Oh well, like I had something better to do with my summer….

(In the short run, they do offer a way to run PHP4 as a CGI on the hosts, so I'll have to see if I can get that to work as a stopgap. Bleah.)

2
Michael Moncur - 11:08 pm July 14, 2007

I do think it's important that the message be broadcast - whatever the PHP developers decide about ending PHP4 support, end users need to know, and they're most likely to find out when their favorite app requires them to upgrade.

The one thing that makes this important for everyone is security - running an insecure version of PHP is very dangerous. So I'm setting a deadline of the end of the year to get my servers running on PHP5, and since my most popular site was developed entirely in PHP3, I've got some work to do…

Thanks to all those who have contributed to the discussion. Comments are now closed, but you can contact the author of the post directly.