original_string: public static function shutdown_handler($errors = false, $handled = false)
      {
          if ($handled) {
              self::flush();
          }
  
          if ($errors === true && ($error = error_get_last()) && !$handled) {
              self::error_handler($error["type"], $error["message"], $error["file"], $error["line"]);
          }
  
          if (!$handled) {
              self::flush();
          }
  
          if (session_id() != '') {
              session_write_close();
          }
  
          exit;
      }
code: public static function shutdown_handler($errors = false, $handled = false)
      {
          if ($handled) {
              self::flush();
          }
  
          if ($errors === true && ($error = error_get_last()) && !$handled) {
              self::error_handler($error["type"], $error["message"], $error["file"], $error["line"]);
          }
  
          if (!$handled) {
              self::flush();
          }
  
          if (session_id() != '') {
              session_write_close();
          }
  
          exit;
      }
code_tokens: public static function shutdown_handler ( $ errors = false , $ handled = false ) { if ( $ handled ) { self :: flush ( ) ; } if ( $ errors === true && ( $ error = error_get_last ( ) ) && ! $ handled ) { self :: error_handler ( $ error [ "type" ] , $ error [ "message" ] , $ error [ "file" ] , $ error [ "line" ] ) ; } if ( ! $ handled ) { self :: flush ( ) ; } if ( session_id ( ) != '' ) { session_write_close ( ) ; } exit ; }
docstring: Default shutdown handler
  
  @param bool $errors
  @param bool $handled
docstring_tokens: Default shutdown handler