Use PHP 5.3.3 in Travis test and fix failing tests

#1319