Fix for PHP 5.3 not supporting protected function calls within a closure