added parser fixes for T_GETTEXT and T_METHOD (ref: previous commit)