ph2thomas: fix need_phi enumeration