WordPress migration to php-5.3

Today we migrated one of our wordpress site from one server to another.
Present server has the version PHP-5.2.9 and the new server has PHP-5.3.2

Once we copied the files and database to the new server, it started showing has the following errors

Assigning the return value of new by reference is deprecated in /home/sitename/public_htm/wp-settings.php line xx

This error should be fixed by removing “&” in wp-settings.php where you have assigned a variable

For example, I have given below one assignment statement

$GLOBALS[‘wp_query’] =& new WP_Query();

Remove ‘&’ and make the line look like below

$GLOBALS[‘wp_query’] = new WP_Query();

Similarly remove “&” in all places whereever this error is thrown.

One more thing is function “set_magic_quotes_runtime()” in deprecated in php-5.3.2
Instead we should use the following
ini_set(“magic_quotes_runtime”, 0);

Also, the function split() is deprecated in php-5.3.2. Instead we should use explode ()

I had already posted a week back other functions that are deprecated in PHP-5.3.2.

Today I found other 3 functions. I will keep posting my updates whenever I find the old functions deprecated in PHP-5.3.2