travis-ci php-5.3 fix

Here is a fix for travis-ci running on php-5.3

Will try to fix others when have time