Merge pull request #49035 from nextcloud/jtr/fix-streamer-zip64

This commit is contained in:
John Molakvoæ 2024-11-09 14:37:22 +01:00 committed by GitHub
commit 7b4a932ed1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ class Streamer {
} elseif ($size > 0 && $size < 4 * 1000 * 1000 * 1000 && $numberOfFiles < 65536) {
$this->streamerInstance = new ZipStreamer(['zip64' => false]);
} else {
$this->streamerInstance = new ZipStreamer(['zip64' => PHP_INT_SIZE !== 4]);
$this->streamerInstance = new ZipStreamer(['zip64' => true]);
}
}