Fix for self scope not available within an anonymous function within a class in PHP5.3