Migrating to php 5.3