I am currently developing a Wordpress plugin. I just found out that most of the main Wordpress hosting environments still use PHP 5.2. Given the fact that security patches for 5.2 are still released, although 5.2 is no longer officially supported, it is very likely that 5.2 will not be available soon.
So, it looks like I will need to do refactoring where I used several 5.3 functions, namely late static binding and closing.
Ideally, I do not want to completely destroy the 5.3 environment just for the 5.2 installation. Is there a way to set the “compatibility mode” for my 5.3 setting so that it only accepts 5.2 syntax?
James source share