PHP 5.3 compatibility 2

Sorry, for multiple pull-requests.