Fix for "self" in a closure in PHP 5.3.