Migrating from PHP 4 to PHP 5.0.x