fix ungreedy bug phpattributes