call_user_func within class context (with $this defined)
<p>Is there a way how to execute closure in PHP5.3 within a context of an object?</p>

<pre><code>class Test {
    public $name='John';

    function greet(){
        eval('echo "Hello, ".$this-&gt;name;');

        call_user_func(function(){
            echo "Goodbye, ".$this-&gt;name;
        });
    }
}
$c = new Test;
$c-&gt;greet();
</code></pre>

<p>The eval() would work fine, however call_user_func will have no access to $this. (<em>Using $this when not in object context</em>).
I am passing "$this" as an argument to closure right now, but that's not exactly what I need.</p>
