fix php older version bug (3)