gunzipFile.php
Table of Contents
Functions
- gunzipFile() : string
- Decompresses a single gzip file, streaming it in chunks.
Functions
gunzipFile()
Decompresses a single gzip file, streaming it in chunks.
gunzipFile(string $source[, string|null $destination = null ][, bool $overwrite = true ]) : string
Counterpart of gzipFile(), using the zlib extension — no subprocess,
and the file is never fully loaded into memory.
Parameters
- $source : string
-
Path to the gzip file to decompress.
- $destination : string|null = null
-
Output path. Defaults to
$sourcewithout its.gzsuffix, or$source+.outwhen the source has no.gzsuffix. - $overwrite : bool = true
-
Whether to overwrite an existing destination (default:
true).
Tags
Return values
string —The destination path.