fix php version bugs