Fix travis build error for PHP 5.4