Slashdot Mirror


PHP 4 End of Life Announcement

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."

17 of 125 comments (clear)

  1. Thank God by Daengbo · · Score: 4, Insightful

    I hope that everyone has moved beyond PHP 4.X by this point. 5.X is more secure and capable.

    1. Re:Thank God by Arancaytar · · Score: 5, Informative

      You'd be surprised how many shared web-hosts are still out there running ancient and unpatched PHP versions. Partly out of laziness and partly out of an unwillingness to make their customers work on their equally ancient applications. register_globals being enabled can be one of the least security concerns there.

      See also http://gophp5.org/

    2. Re:Thank God by flight_master · · Score: 2, Informative

      I am the owner of a shared hosting provider, and partially I need to rebuke your statement.
      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 :-D Now we have a reason to say that too.

      --
      "Free software" is a matter of liberty, not price.
    3. Re:Thank God by NeoThermic · · Score: 4, Informative

      For those using phpBB2, as long as you're not using an obscure PHP5 config, it will work fine. We just don't officially support it as phpBB2 was written for PHP3 and PHP4 only (since those were the only versions out when it was released). Or, get them to move over to phpBB3, which not only supports PHP4 and PHP5, but will actually run on PHP6-dev versions. (Although if you're running -dev on a live server...)

      NeoThermic

      --
      Use my link above, or to view my server, NeoThermic.com
  2. Needed But Will Be Troublesome by detain · · Score: 5, Insightful

    While I can completely understand the need for this to occur, I can see this causing alot of problems for many small businesses, personal webpages, and hosting companies. PHP5 is definitly worthwhile switching to from PHP4, but there are so many poorly coded sites out there that wont run properly under PHP5, and this at some point is going to cause a nightmare for various hosting companies.

    Your typical small business or personal webpage will frequently use PHP, and have little knowledge of how to fix their code to get it working, or how to upgrade their 3rd party software to a PHP5 Compatible version. At the same time hosting companies who will reach a point where they need to upgrade to PHP5 in order to keep their systems as secure as possible (because PHP4 security fixs might not be coming out) will be faced with many angry customers who are unwilling to spend time or money to change a site that they see as working previously.

    I can completely understand why a company might need to stop supporting an old version of their product at some point when newer ones are freely available, I just am not looking forward to all the headaches its going to cause. I can hear the phones of angry customers threatening to kill me because i "broke their site" now.

    Oh well, hopefully all PHP5 code will wind up working just fine in PHP6 when it comes out.

    --
    http://interserver.net/
  3. Re:If only... by misleb · · Score: 2, Insightful

    Are you saying Microsoft is a braindead company for tying up with Zend to enhance PHP on Windows servers?


    Sure, why not? They're just doing whatever makes business sense. It has nothing to do with the quality or capabilities of the language.

    -matthew
    --
    "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
  4. Seems strange to me by ls671 · · Score: 2, Insightful

    Sorry, all I have done in PHP was modify or patch other programs so I do not know much about it.

    But in Java/J2EE, I still run applications that were developed (and even compiled sometimes) in java 1.0 on the java 5 platform without any changes or security issues. I see some "backward incompatible changes" in the PHP migration info.

    With the java/J2EE/jsp programs I have running here and there, I sure do enjoy the care the maintainers of a language take to insure backward compatibility even if it is sometime a little more difficult and involves deprecating faulty methods and creation of equivalent with new names instead of changing the behaviour of existing methods.

    So this seems strange to me but hey ! I don't want the PHP community to start throwing flames at me and java, we would quickly get outnumbered I would guess ;-)

    --
    Everything I write is lies, read between the lines.
    1. Re:Seems strange to me by panaceaa · · Score: 4, Informative

      PHP began as a hacky side project of a lone developer (Rasmus Lerdorf). I'm not wholly aware of the details, but my understanding is that Rasmus was a Perl coder and wanted to generate minorly dynamic web pages by putting Perl-like code inside of his HTML. As the capabilities of his technology grew, he released it as an open source project, and due to its extreme ease of use it quickly turned into a popular web development language.

      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.

    2. Re:Seems strange to me by 1110110001 · · Score: 4, Insightful

      PHP5 could not continue backward compatability, PHP had to break backwards compatibility, ...

      I keep reading this and am wondering if you ever ported code from PHP4 to PHP5. I did it with a bigger project and the only problem I had was, that someone had uses StdClass without creating an empty instance first. Took about a day to fix that. It's nothing like VB6 vs. VB.NET.

    3. Re:Seems strange to me by mrdaveb · · Score: 2, Informative

      PHP3 to PHP4 was also a big jump. But if you actually look at the backwards incompatibility list 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

      --
      Homme petit d'homme petit, s'attend, n'avale
    4. Re:Seems strange to me by sgtrock · · Score: 2, 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, Zope, Plone, and Django for examples. You may also find some other goodies when you explore the Python Cheese Shop.

      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.

  5. Translation by a16 · · Score: 2, Informative

    cry me a river? upgrading pains are a part of the IT industry, people need to either accept this or get out. Maybe so, but let me translate what you just said slightly:

    cry me a river? upgrading pains are a part of the IT industry, my customers need to either accept this or go to a host that hasn't upgraded yet, and stop paying me money. I'm guessing you aren't running a business...

    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...
  6. finally! by Spliffster · · Score: 4, Informative

    This is a great move I think. php 5 has been out for years, superior and pretty backward compatible to php 4. Many problems in the past with 4.3/4.4 and 5.0/5.1 releases have happend due to the backward compatibility of php 5. I hope this will ease development and result in a robuster solution.

    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.incompatib le.php
    2) http://www.php.net/manual/en/migration5.php#migrat ion5.changes

  7. Coordinated switch-to-5 campaign by yelvington · · Score: 5, Informative

    Coinciding with this announcement is the launch of a campaign to switch major PHP-based Web applications to PHP5-only support. The GoPHP5.org website has details.

    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.

  8. Re:If only... by raju1kabir · · Score: 2, Funny

    What exactly is so bad about PHP?

    It's too street to have any snob value.

    The linguistically nouveau riche, who have recently tried to score a little upward social mobility by learning some Python or Ruby, resent nothing more than the teeming masses of hungry PHP developers underbidding them.

    --
    "Patriotism is your conviction that this country is superior to all other countries because you were born in it." -- GBS
  9. Comment removed by account_deleted · · Score: 2, Funny

    Comment removed based on user account deletion

  10. a good PHPer should write by imkow · · Score: 2, Insightful

    A good PHPer should write codes that works in both PHP4 and PHP5.
    It's not hard. Normally code which runs good in STRICT error reporting mode of PHP4 can run under PHP5 without changes.
    I have been doing this for three years. My local development evironment is the lastest PHP5.2x+ Mysql6.x beta + apache 2.2
    but my deploy evironment is still in PHP4.x. My code works fine all the time;

    --
    China, in fact, is very fragile.