Has get_object_vars changed in version 5.4?
<p>I used to get all public vars from a class inside a class with a Closure like this:</p>

<pre><code>Class myClass
{
  public $foo;
  private $bar;

  private function GetFields()
  {
    $lambda = function( $obj ) { return get_object_vars( $obj ); };
    return $lambda( $this );
  }

  public function SomeFunction()
  {
    $fields = $this-&gt;GetFields();
  }
}
</code></pre>

<p>This worked perfect, and gave me all public vars while inside a class.</p>

<p>Now, I upgraded my server to PHP 5.4 and I get all privates and protected vars to.
Is that a new 'Feature' or is it a Bug?</p>
