fix php version 5.2 problem