CmdGabriel wrote:
Do you have any tips/ressources about necessary steps to migration to PHP5?
You'll want to disable register_globals in PHP5, so in many places you will need to have $foo replaced by $GET['foo'] or $POST['foo'] as necessary.
Get a proper error handler and enable all notices, warnings, etc. Have the error handler quit the page with a large and loud message and stack trace.
How would you startsuch a project?
I would get a working PHP3 development environment so that I could run the test plan* against the existing application to determine how well it works on there.
Then you can determine the level of functionality that needs to be duplicated under PHP5.
Of course errors will happen and you'll need to fix them on a case-by-case basis- but the most likely things will be due to register_globals.
The PHP3 application may also use some deprecated/ poor techniques which generate warnings:
- Using undefined variables
- Call-time pass by reference
- Using barewords as literal strings
These will generate notices, which will cause your loud obnoxious error handler to halt the page, so you'll have to fix these too.
Mark
- The test plan which surely exists for the application in its code maintenance manual.