fix php older version bug (4)