Reputation: 916
I have never upgraded my version of PHP but feel I need to to use some of the new abilities. So I was wondering if there is any risk of losing my settings or even perhaps breaking the functionality of my code when upgrading?
Upvotes: 0
Views: 129
Reputation: 2583
Yes. The best way to find out is to deploy your application in a test environment with the new version of PHP and thoroughly test it before upgrading PHP on your production server.
Upvotes: 0
Reputation: 91
Yes. The biggest problems I've seen is with old code that uses assignment by reference functions
$sFoo =& $sBar;
99% of the time you can change the code to
$sFoo = $sBar;
and it works great--Your mileage may vary
Also 5.2 defaults to having the short_open_tag being off. if your code all begins with <?php
instead of just <?
I suggest keeping this off to promote good programming, if not you'll need to change it (recommended) or change the short_open_tag to on in your php.ini
Upvotes: 0
Reputation: 20909
There's a section available on the PHP website that feature changes between versions, including any backwards incompatible features.
You'll likely have to check the 5.1->5.2 and the 5.2->5.3 pages on the left navigation bar.
Upvotes: 1