stream = $stream; } /** * Returns an string content of the given entry. * * @return null|string * @throws ZipException */ public function getEntryContent() { return stream_get_contents($this->stream, -1, 0); } /** * Release stream resource. */ function __destruct() { if (null !== $this->stream) { fclose($this->stream); $this->stream = null; } } }