PHP 5.3 compatibility 3

Sorry for multiple pull-requests.