original_string: function registerShutdownFunc($func, $args = array())
      {
          // if we are called statically, there is a potential
          // that no shutdown func is registered.  Bug #6445
          if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {
              register_shutdown_function("_PEAR_call_destructors");
              $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true;
          }
          $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args);
      }
code: function registerShutdownFunc($func, $args = array())
      {
          // if we are called statically, there is a potential
          // that no shutdown func is registered.  Bug #6445
          if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {
              register_shutdown_function("_PEAR_call_destructors");
              $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true;
          }
          $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args);
      }
code_tokens: function registerShutdownFunc ( $ func , $ args = array ( ) ) { // if we are called statically, there is a potential // that no shutdown func is registered.  Bug #6445 if ( ! isset ( $ GLOBALS [ '_PEAR_SHUTDOWN_REGISTERED' ] ) ) { register_shutdown_function ( "_PEAR_call_destructors" ) ; $ GLOBALS [ '_PEAR_SHUTDOWN_REGISTERED' ] = true ; } $ GLOBALS [ '_PEAR_shutdown_funcs' ] [ ] = array ( $ func , $ args ) ; }
docstring: Use this function to register a shutdown method for static
  classes.
  
  @access public
  @param  mixed $func  The function name (or array of class/method) to call
  @param  mixed $args  The arguments to pass to the function
  @return void
docstring_tokens: Use this function to register a shutdown method for static classes .