views:

259

answers:

2

Is there any magic tools i can use to scan source code that was written for PHP4 to highlight deprecated functions in PHP5? I'm currently running the latest version of PHP on a server and need to port this code. Is there anything out there that can give me a hand?

+4  A: 

PHP 5.3 will throw an E_DEPRECATED warning if you set your error reporting levels to show them.

ceejayoz
The thing is i can fix the errors when each occurs but i was looking for a way to scan all sources. I'm currently fixing these errors but i might miss some that might not appear when im testing the software.
Gary Willoughby
A: 

The appendices of the manual contain some migration information but I don't think it contains what you're looking for.

One way (which might be inaccurate but could be used) I thought of was the news.txt included in each PHP download. I'm writing a script atm that parses this file and checking for deprecated functions could be something I could add. I am working on another project atm but I'd like to add functionality for this in the larger rebuilt version.

Ross