]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(streamer): zip64 should work on 32-bit env now jtr/fix-streamer-zip64 49035/head
authorJosh <josh.t.richards@gmail.com>
Thu, 31 Oct 2024 15:37:03 +0000 (11:37 -0400)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2024 15:37:03 +0000 (11:37 -0400)
Since DeepDiver1975/PHPZipStreamer#11 was merged

Signed-off-by: Josh <josh.t.richards@gmail.com>
lib/private/Streamer.php

index 642e221ecc4241a60852d5cd5ee42d502841f396..de663f66e0d20cd632846bb691f272a65d6e4cbd 100644 (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]);
                }
        }