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);
    }
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);
    }
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 ) ; }
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
Use this function to register a shutdown method for static classes .