fixed some typos in phpapi