Results 1 to 5 of 5

Thread: Deprecated Functions Will Cause Sites to Crash With PHP 5.3

  1. #1
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,029
    Thanks
    345
    Thanked 902 Times in 689 Posts

    Deprecated Functions Will Cause Sites to Crash With PHP 5.3

    It looks like a list of functions have been formally deprecated in PHP 5.3 and may cause lots of PHP sites to crash when the server is upgraded.

    http://docs.php.net/manual/en/migrat...deprecated.php

    Many popular shopping carts will be crashing when the server is upgraded to PHP 5.3. There is a lot of legacy code that has not been removed from a lot of popular scripts.

    It does seem kind of stupid for the PHP team to generate a PHP error, rather than a warning, to let developers know that they need to upgrade the code.

    Zen Cart is vulnerable, and because it is based on osCommerce, I suspect osCommerce will also crash. The Zen Cart team already has a patch set up. If you run a Zen Cart site, get the patch here:

    PHP 5.3 Support - Zen Cart Support
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  2. Thanked by:

    dmi (13 November, 2009), Shenron (12 November, 2009)

  3. #2
    Nathan's Avatar
    Nathan is offline Work!
    Join Date
    Dec 2008
    Location
    New Zealand
    Posts
    392
    Blog Entries
    1
    Thanks
    37
    Thanked 120 Times in 68 Posts
    Hopefully people don't dive in and upgrade to the latest version of PHP without knowing these changes. Seems kind of weird that PHP would make all of these changes in one update though.
    Programmer, web developer and entrepreneur.

  4. #3
    Shenron's Avatar
    Shenron is offline Administrator
    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    1,900
    Blog Entries
    2
    Thanks
    561
    Thanked 548 Times in 368 Posts
    I don't think Hosting companies will be upgrading their servers, at least major companies.

    Thx for the heads up!

  5. #4
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,029
    Thanks
    345
    Thanked 902 Times in 689 Posts
    Given the potential problems with the 5.3 update, I would hope that most hosting companies will give site owners some notice about an upgrade. The upgrade itself may be inevitable, because most hosting companies do periodically upgrade their services.

    From my perspective, it would have made much more sense to generate warnings rather than errors. With warning messages, it would be easier to upgrade the code.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  6. #5
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    I dont know about PHP 5.3, In PHP 6, the decprecated functions like Ereg() wont generate errors at all, except a fatal one that it doesn't exist. Any backwards compatibility is completely removed from the C source code of the php engine.
    Submit new proxies -

Similar Threads

  1. Glittering administrative functions
    By ViDonaghuehkkf in forum Services
    Replies: 0
    Last Post: 1 February, 2011, 06:15 AM
  2. PHP Form verification: preg or built in functions
    By DickTracy in forum Programming
    Replies: 4
    Last Post: 13 December, 2009, 08:46 AM
  3. Spybot causing IE 7 to crash?
    By bogart in forum Tech-Talk
    Replies: 9
    Last Post: 25 August, 2009, 09:21 AM
  4. Use PHP functions in JavaScript
    By ankit in forum Programming
    Replies: 3
    Last Post: 31 May, 2009, 10:12 AM
  5. The Keyword Crash Course
    By Will.Spencer in forum Keyword Research
    Replies: 14
    Last Post: 9 March, 2009, 15:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •