Enabled PHP 5.3

Support was broken due to a mistake with the shutdown function.

Enabled php 5.3 on travis

Fixed issue with callback