# wpdatatables/6.5.1.7/lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream3.php

wpDataTables – WordPress Data Table, Dynamic Tables &amp; Table Charts Plugin, version 6.5.1.7. 23 lines.

- Page: https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/code/lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream3.php
- Raw: https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/raw/lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream3.php
- Modified: 2024-02-20T08:53:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/code/lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream3.php#L10-L20`.

```php
<?php

namespace PhpOffice\PhpSpreadsheet\Writer;

use ZipStream\Option\Archive;
use ZipStream\ZipStream;

class ZipStream3
{
    /**
     * @param resource $fileHandle
     */
    public static function newZipStream($fileHandle): ZipStream
    {
        return new ZipStream(
            enableZip64: false,
            outputStream: $fileHandle,
            sendHttpHeaders: false,
            defaultEnableZeroHeader: false,
        );
    }
}

```
