title: How to pass arguments to callable method specifically for register_shutdown_function?
body: <p>I have method, in this method may be happened fatal error, for catching this error I make this</p>
  
  <pre><code>class a {
  
  
      function shutDownFunction() { 
          $error = error_get_last();
          if ($error['type'] == 1) {
              echo "this is fatal error";
          } 
      }
  
  
      function terribleFunction () {
          register_shutdown_function(array($this,'shutdownFunction'));
  
  
          // here is code, wich may causes fatal error
  
      }
  
  
  }
  </code></pre>
  
  <p>Okay, this understand, but I need pass argument from <code>terribleFunction</code> to <code>shutDownFunction</code>. How to make this? </p>