$ php --version PHP 5.5.4 (cli) (built: Sep 19 2013 17:10:06) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies >
You can use this:
class Foo { public function bar() { $obj = $this; return function() use ($obj) { //$obj->DoStuff(); echo "in closure\n"; }; } }