Update to PHP5 class specs