Msg#: 3764157 posted 7:46 pm on Oct 12, 2008 (gmt 0)
My host wants me to go from a server with PHP 4 to one running PHP 5. All the scripts on my site are running fine on PHP 4. Can I expect any issues when running the same scripts on PHP 5? What things should be modified before the conversion so the site will run smoothly after the transition?
Msg#: 3764157 posted 9:17 pm on Oct 12, 2008 (gmt 0)
It all depends on the scripts. There are a few issues, notably because register_globals is off by default in 5. It could cause problems, but it really depends on when your scripts were created and what versions they're for.
PHP is currently on version 6, so if you're running the latest versions of everything, as you should be for the best security, then I doubt you'll have problems. If they're custom scripts then it could be a bit of a headache.
Msg#: 3764157 posted 9:05 am on Oct 13, 2008 (gmt 0)
I would set up a local server running php5 and test it. If your scripts were written properly you should not have may problems.
The one to watch out for the the xml functions as these have been rewritten, for the best, so have to change the way xslt is applied to xml. This is quick, I had to do it, just put in a version check for when we upgrade so the script will work on either PHP4 or PHP5.
As always it is best to read all the documentation about the upgrade on the php website, and use something like agent ransack to check your scripts for any references to functions that may have changed or been deprecated.