1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-10-11 13:24:28 +02:00

some bugs fixed for php 32-bit

This commit is contained in:
wapplay-home-linux
2017-10-30 23:31:39 +03:00
parent 183274d6da
commit 115dfd3b52
3 changed files with 9 additions and 2 deletions

View File

@@ -258,7 +258,7 @@ abstract class ZipNewEntry extends ZipAbstractEntry
} else {
fwrite($outputStream, pack('VV', $this->getCompressedSize(), $this->getSize()));
}
} elseif ($this->getCompressedSize() !== $compressedSize) {
} elseif ($this->getCompressedSize() != $compressedSize) {
throw new ZipException($this->getName()
. " (expected compressed entry size of "
. $this->getCompressedSize() . " bytes, but is actually " . $compressedSize . " bytes)");