title: print_r(): Property access is not allowed yet
body: <p>I have an error reporting class that is called when an error occurs. It is to report the error on browser or email. The class itself results in a Warning message reported.</p>
  
  <pre><code>print_r(): Property access is not allowed yet
  </code></pre>
  
  <p>This is the code that generates the Warning:</p>
  
  <pre><code>foreach ( func_get_args() as $arg )
      print_r($arg);
  </code></pre>
  
  <p>PHP Version 5.4.37</p>
  
  <p>Here is more detailed code:</p>
  
  <pre><code>class MyErrHandler
  {
      private static $_currErr='';
  
      public static function displayError()
      {
          ob_start();
  
          foreach ( func_get_args() as $arg )
              print_r($arg);
  
          .....
  </code></pre>