fix php older version bug (2)