src/ZipStreamer.php
public function flush() {
    if ($this->locked) return;
    while ($this->send()) {
    }
    foreach ($this->files as $file) {
      $this->output($file->getCentral());
    }
    $this->output($this->getEOF());
    $this->locked = TRUE;
    $this->outputter->flush();
  }
public function flush() {
    if ($this->locked) return;
    while ($this->send()) {
    }
    foreach ($this->files as $file) {
      $this->output($file->getCentral());
    }
    $this->output($this->getEOF());
    $this->locked = TRUE;
    $this->outputter->flush();
  }
public function flush ( ) { if ( $ this -> locked ) return ; while ( $ this -> send ( ) ) { } foreach ( $ this -> files as $ file ) { $ this -> output ( $ file -> getCentral ( ) ) ; } $ this -> output ( $ this -> getEOF ( ) ) ; $ this -> locked = TRUE ; $ this -> outputter -> flush ( ) ; }
Send any remaining files in the queue (@see send())
and output the central directory records (footer).
Send any remaining files in the queue (