fix code php past issue