For those out there wanting to make the move from PHP4 up to PHP5, Robert Ames has posted a few things to watch out for.
So, I've spent some time upgrading the darwingames.com codebase to be PHP5 compatible. For those considering the transition (and language designers who are considering an incompatible source version upgrade), I offer the following observations.
He breaks it down into to categories - the good and the bad. Some of the items on either list include:
- static methods (good)
- E_STRICT (bad)
- random passing by reference gone (good)
- replacing is_a() with instanceof (bad)
He also offers some of his personal suggestions for guidelines for future language updates.