Upgrading PHP? Problems?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
angelicodin
Forum Commoner
Posts: 81
Joined: Fri Nov 13, 2009 3:17 am
Location: Oregon, USA

Upgrading PHP? Problems?

Post by angelicodin »

Hey ya guys. I got a question that I am having trouble finding an answer to. I got a couple servers with live websites that have a lot of traffic and my boss wants to install and test this new web app. Here is the problem: My servers are not up to date with the latest php and MySQL. The web app requires a whole slue of things but more so the problem we are running into is that it needs PHP 5.2.0 or higher and MySQL 4.1.2 or higher. We currently use PHP 5.1.6 and MySQL 5.0.22. MySQL is fine and works just like I want thankfully (although could use an update as well). PHP is my concern.

From this version to at least 5.2.0 is there any code that I should be concerned about when upgrading? Should I expect any problems? How long dose this upgrade take?

Our options right now are to upgrade the server's software or just lease a new dedicated server. Personally I just want to upgrade and save my boss some money but this is his call and wants to know if there are any risks to the current live sites witch generate the majority of the company's revenue.

Any thoughts on this as well as anything maybe I didn't cover I should be concerned with?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Upgrading PHP? Problems?

Post by requinix »

Migrating from PHP 5.1.x to 5.2.x

Notable changes include:
  • __toString() being called in more circumstances than before
  • abstract static methods raise E_STRICTs (since both abstract and static doesn't make OOP sense)
  • Date/time functions may issue warnings if you haven't set the default timezone
5.2 also includes a large number of new or expanded functions, methods, classes, constants, and other stuff.

On the bright side the changelog isn't nearly as complicated as it is upgrading to 5.3 or 5.4 :) In my mind there's 5.x, 5.3, and 5.4.
User avatar
angelicodin
Forum Commoner
Posts: 81
Joined: Fri Nov 13, 2009 3:17 am
Location: Oregon, USA

Re: Upgrading PHP? Problems?

Post by angelicodin »

You sir/madam are a saint. ^_^
Post Reply