Updating to PHP5 constructor