How to make PHP 5.2 compatible with future versions

176 Views Asked by At

I am writing a CMS in version 5.2 but I am worried whether or not it will be compatible with PHP 5.3 or future versions for that matter.

What things I should watch out for or there is nothing to worry about ?

P.S: Please don't suggest that I should use PHP 5.3 instead as that's not the question asked.

3

There are 3 best solutions below

1
On BEST ANSWER

PHP takes a very conservative approach to backwards compatibility. Most code will continue to work for quite a while - I've seen PHP3 code that's still OK in 5.3.

You should keep an eye on the lists of backwards incompatible changes.

0
On

You should check the list of backwards incompatible changes here: http://www.php.net/manual/en/migration53.incompatible.php

2
On

One thing that I currently have encountered and in some ways is pretty serious is that php > 5.3 no longer supports natively mssql (Microsoft SQL server) extension. I don't know if that is of any good use to you. But from 5.3 version php dropped support for it and suggests that you use Microsofts' extension instead: http://www.microsoft.com/download/en/details.aspx?id=20098