5.2->5.3 migration script
Posted by Stas on January 25, 2010
Wrote an article on DevZone about migration script from php 5.2 to 5.3. This little script can save some time when you consider to move your codebase to run under 5.3 (which you should
).
This script doesn’t do everything I’d like it to do – specifically, I’d like to make it try to figure out all kinds of messy reference scenarios, but I’m not sure how yet. And if you have other idea, please comment there or here. It’s on public git, so you can take it and modify if you wish.
5.2-gt;5.3 migration script « PHP 10.0 Blog « Script said
[...] Today found this great post, here is a quick excerpt : This script doesn’t do everything I’d like it to do – specifically, I’d like to make it try to figure out all kinds of messy reference scenarios, but I’m not sure how yet. And if you have other idea, please comment there or here. … Read the rest of this great post Here [...]
Joseph Piché said
Interesting little script, but I feel like it might be a little overkill. If error_reporting was set to
E_ALL|E_STRICTwhen developing in 5.2, wouldn’t most of the issues just not exist?Stas said
For some of them, yes, but some – like new keywords or stricter signatures – just do not exist in 5.2