PHP 4 End of Life Announcement 125
perbert writes "The PHP development team has announced that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. Critical security fixes will be made available on a case-by-case basis until 2008-08-08. For documentation on migration for PHP 4 to PHP 5, there is a migration guide. There is additional information available in the PHP 5.0 to PHP 5.1 and PHP 5.1 to PHP 5.2 migration guides as well."
Re:Thank God (Score:5, Informative)
See also http://gophp5.org/ [gophp5.org]
Re:Seems strange to me (Score:5, Informative)
The reason PHP5 could not continue backward compatability is because of its roots: It was designed to be EASY. In the first few releases, there wasn't serious thought put into making a proper software development language. But as web pages became more complex, soft typing, lack of proper scope, and lack of OOP patterns made developing complex PHP applications a world of horror. In addition, concepts like putting all query parameters into the scope of the program, which made developing simple applications easy, created a difficult situation for those trying to make complex applications secure. So to remove these security problems, and to remain relevant by providing richer programming constructs like classes, PHP had to break backwards compatibility.
And while Java is mostly backwards compatible, the technologies for developing Java on the web have changed dramatically. Originally, JSP developers would put Java code right in their HTML! Today this is highly frowned upon (though backward compatible). So developers switched to JSP tags, such as the JSP Standard Tag Library, which coincidentally enough aren't backward compatible between versions. If you're running a Java app server, you'll definitely run into problems when upgrading WebSphere, WebLogic or Tomcat, due to updated tag libraries and other JARs being incompatible with their previous versions. These problems aren't as bad as porting your average PHP app from PHP4 to PHP5, but upgrading versions not a straight-forward process with either programming language.
Stepping back, PHP is in a pretty similar spot to Visual Basic. VB.NET is wholely incompatible with VB6. Microsoft has announced a dropping of support for VB6. However, half of VB developers still program in VB6. Many VB programmers don't understand VB.NET's features, and hence are quite reluctant to move to VB.NET (and they're probably angry, too). And most existing VB6 code would nearly require a complete rewrite to get running in VB.NET. What might just happen is that Microsoft and PHP will have to continue supporting their legacy versions or simply lose beginning programmers as customers. Microsoft will probably continue to end-of-life VB6, but I believe they will release a language highly similar to VB6 that's easier to move over to. It will be interesting to see whether PHP follows a similar path or just leaves its developers to either learn PHP5 or move to another webby language, like Python.
Translation (Score:3, Informative)
I work for a reasonably large hosting company that held off until a few months ago to announce that we're going to PHP5 in a few weeks. Before this point, we'd had a steady trickle of 1-2 customers a month asking when we are going to PHP5. Since the announcement, we've had up to 4-5 customers a week complaining that they will leave if we dare upgrade, they can't stand companies that change things for the sake of upgrading, etc. etc. The fact is that there are a *lot* of small business websites, designed for them by some employee x years ago, which will break when we go V5 (heck, even disabling register globals screws up most of these client sites) and the customer has no employees capable of fixing it. We've been helping customers with extra hand-holding when it comes to ensuring they will be ok, but it is costing us time to support these customers, and a reasonable percentage will simply leave us a week before the swap.
I really do believe their will be massive demand for a PHP 4 only reliable host rolling their own security updates, after end of life. I know a reasonable percentage of our client base that would likely consider them...
finally! (Score:5, Informative)
Becasue php5 is already in the wild for years and there is still more than a year of security updates available, I think there should be time enough for migration to php5. I is also not too hard to migrate, I have done this in the last 1-2 years on many sites. There are some really annoying changes in php 5 but the php guys have documented it well [1].
Using the "Migrating from PHP 4 to PHP 5"[2] Documentation was very helpfull and it turned out to be pretty easy (except for scripts/applications which were already ported from php 3 and still were using php 4 backward compatibility "features").
1) http://www.php.net/manual/en/migration5.incompati
2) http://www.php.net/manual/en/migration5.php#migra
Coordinated switch-to-5 campaign (Score:5, Informative)
Projects supporting this move have pledged that by Feb. 5, 2008, they will no longer accept PHP4-specific changes in their codebase and that all future upgrades will assume PHP5 availability.
This doesn't mean they are rewriting all their code to OOP-style, or that they will end legacy version support for security patches, et cetera. What it means is that the developers are liberated from having to code around PHP4's limitations and can take advantage of PHP5 features for all future enhancements.
Often something that might require hundreds of lines of code in PHP4 can be done with just a few in PHP5. The SimpleXML parser is probably the best example.
Application teams already on board for this switch include Drupal, phpMyAdmin, Typo3, Symphony, Gallery, DeskPRO, and many others. Several major projects not yet committed are known to be preparing to do so.
This is most important to hosting companies as a signal that robust PHP5 support is a requirement going forward.
Re:Seems strange to me (Score:3, Informative)
PHP3 to PHP4 was also a big jump. But if you actually look at the backwards incompatibility list [php.net] between PHP4 and PHP5, it is a very short list of very minor tweaks. I can say with a very good level of confidence that they aren't going affect me at all! OK, I can say this because I already switched, but you see my point.
There have been big steps forward 'under the hood' and with the new object orientation and better scoping... but this is basically all new stuff. Nothing widely used has been removed. I think they will start carefully stripping out the cruft for PHP6
Re:Thank God (Score:2, Informative)
Sure, most of our systems do run on the latest LAMP stack (Apache 2, MySQL 5, PHP 5), however we still have some systems runnning PHP4, as clients insist on using old software like phpBB (for example) that doesn't run at all on version 5. Not to mention, those of us who use cPanel need to wait for them to get the entire system stable before we can upgrade.
This combines well for us though - we announced that PHP4 support will officially end September 30th of this year
Re:Thank God (Score:5, Informative)
NeoThermic
Re:Seems strange to me (Score:3, Informative)
If you're interested in Python Web development, you'll find a host of network and Web specific frameworks. I suggest checking out Twisted [twistedmatrix.com], Zope [zope.org], Plone [plone.org], and Django [djangoproject.com] for examples. You may also find some other goodies when you explore the Python Cheese Shop [python.org].
Of course, no mention of Python can pass by without someone bringing up Ruby on Rails, so I'll just do that right now. :) However, I have no experience with it whatsoever, so I'll withhold any opinion.