Make PHP implementation use exceptions and update tests