We help IT Professionals succeed at work.

PHP Server Upgrade from 4.4.8 to 5.2.17

PeterErhard
PeterErhard used Ask the Experts™
on
My current webserver is running PHP Version 4.4.8 and we plan on upgrading to PHP Version 5.2.17.

As I have a lot of custom scripts, we're going to go through a proper test phase, but I just wondered if anyone knew of some good articles or had some experiences on what I need to watch-out for.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
This page has an article about upgrading PHP.  I went from 4.4.9 to 5.2.5 then 5.2.17 on this computer without problems.  The MySQL connection can be a problem depending on the driver and database version that you are using.

Upgrading to PHP 5.3 is a much bigger step if you were wondering, especially if you are using Microsoft SQL Server.  

Author

Commented:
Thanks Dave - I won't be doing the upgrade myself, my web-host will be.

I was more wondering about changes that might cause bugs within my php scripts.
Fixer of Problems
Most Valuable Expert 2014
Commented:
I forgot to include the link: http://www.php.net/manual/en/migration5.php   They cover things like "Backward incompatible changes" which is long for "code you have to rewrite".  Note that each newer version of PHP is becoming less tolerant of errors.  In PHP 5.3, I know that some error messages can no longer be turned off.  You have to fix the error to get rid of the message.  With that in mind, I try to remember to put

error_reporting(E_ALL);

at the top of all my PHP scripts.

Depending on the complexity of your site, I might keep the old copy running until the new one is verified.

Author

Commented:
Thanks Dave, much appreciated.

Yes we're going to do some full Regression testing before we move to the new server which will be running 5.2.17.
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
You're welcome, glad to help.