Question

Possible Duplicate:
Upgrade PHP from version 5.2 to 5.3

I have 15 sites implemented with some functions that are deprecated in PHP 5.3. My hosting provider is offering me a new server, but it has php 5.3 installed on it. I need to upgrade all of my code to 5.3, because the server move is imminent, so I was wondering what's the best way to identify/correct the files that have deprecated functions.

I tried with PHP_Codesniffer, and it's giving me the list of files and the exact functions that won't work in PHP5.3, but I still need to edit the files one by one. Is there another extension/program that could help me with this? (just trying to avoid all of the tedious work of going into all of the files one by one)

Thanks

Was it helpful?

Solution

Download and install Sublime Text 2, Notepad2, Notepad++, etc. They all have search & replace in a specified directory. You'll have to do a search & replace for each thing you want to change, but it's faster that doing it one file at a time.

OTHER TIPS

Check out this document about the changes between 5.2 and 5.3: http://php.net/manual/en/migration53.php

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top