是否有令人信服的理由从php 5.3切换到5.2? [关闭]

My boss created an application in php 5.2 on some older server. The application writes and reads data from a sql server 2012 database.

We now have a brand spankin new windows server 2012 with iis 8 on it.

My job is to migrate the application from the old server to the new server.

I've already installed php 5.3 not knowing that we need 5.2

Question

  1. should I downgrade?
  2. if so, how do i downgrade? the process of installing 5.3 is easy, but 5.2 is going to be a nightmare.

example this will only work in versions 5.3+:

$serverName = '(localdb)\v11.0';
$connOptions = array('AttachDBFileName'=>'C:\Users\bswan\ExampleDB.mdf','Database'=>'ExampleDB');

$conn = sqlsrv_connect($serverName, $connOptions);
if($conn === false)      
    die(print_r(sqlsrv_errors(), true)); 
else
    echo "Connected via sqlsrv!<br />";

You should check what has changed in 5.3. I would take the time to test to see if everything works fine with your application in 5.3 and if it does then you shouldn't downgrade. It's best to stay on the latest version if you can. If you insist on downgrading you can check this relevant post.

There are NO valid reasons for downgrading. If you have a new system, you should be installing PHP 5.4.