make redid support php7