Fix compatibility with PHP 5.3 by passing $that alias to closure

This small patch fixes compatibility with PHP 5.3 by passing $that alias to closure.