add php 5.2 and pgsql to travis