fix travis ci build for php 5.2