diff --git a/src/IO/ZipReader.php b/src/IO/ZipReader.php index 764657f..773474e 100644 --- a/src/IO/ZipReader.php +++ b/src/IO/ZipReader.php @@ -765,6 +765,11 @@ class ZipReader $filters[] = $encContextFilter; } + // hack, see https://groups.google.com/forum/#!topic/alt.comp.lang.php/37_JZeW63uc + $pos = ftell($this->inStream); + rewind($this->inStream); + fseek($this->inStream, $pos); + $contextDecompress = null; switch ($compressionMethod) { case ZipCompressionMethod::STORED: diff --git a/src/ZipFile.php b/src/ZipFile.php index 5b4f656..1af7828 100644 --- a/src/ZipFile.php +++ b/src/ZipFile.php @@ -1,6 +1,7 @@