fix travis ci build for php 5.2
Merge pull request #448 from aporat/travis_php52_fix

Fix Travis CI build for PHP 5.2