Migrating from PHP 5.1.x to PHP 5.2.x