isCleanExit() static public method

*! \return true if the request finished properly.
static public isCleanExit ( )
コード例 #1
0
ファイル: ezexecution.php プロジェクト: nottavi/ezpublish
    static function uncleanShutdownHandler()
    {
        // Need to change the current directory, since this information is lost
        // when the callbackfunction is called. eZDocumentRoot is set in ::registerShutdownHandler
        if ( self::$eZDocumentRoot !== null )
        {
            chdir( self::$eZDocumentRoot );
        }

        if ( eZExecution::isCleanExit() )
            return;
        eZExecution::cleanup();
        $handlers = eZExecution::fatalErrorHandlers();
        foreach ( $handlers as $handler )
        {
            if ( is_callable( $handler ) )
                call_user_func( $handler );
            else

                eZDebug::writeError('Could not call fatal error handler, is it a static public function?', __METHOD__ );
        }
    }
コード例 #2
0
ファイル: ezexecution.php プロジェクト: CG77/ezpublish-legacy
 static function uncleanShutdownHandler()
 {
     // Need to change the current directory, since this information is lost
     // when the callbackfunction is called. eZDocumentRoot is set in ::registerShutdownHandler
     // Getting the previous current working directory as we might need to get back there (i.e. Symfony web/ directory).
     $previousCwd = getcwd();
     if (self::$eZDocumentRoot !== null) {
         chdir(self::$eZDocumentRoot);
     }
     if (eZExecution::isCleanExit()) {
         chdir($previousCwd);
         return;
     }
     eZExecution::cleanup();
     $handlers = eZExecution::fatalErrorHandlers();
     foreach ($handlers as $handler) {
         if (is_callable($handler)) {
             call_user_func($handler);
         } else {
             eZDebug::writeError('Could not call fatal error handler, is it a static public function?', __METHOD__);
         }
     }
     chdir($previousCwd);
 }