New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zipstream-php is amd64 only? #3928
Comments
Ok, that seems to be the case - that's odd. I'm afraid we'll have to look for a replacement for the library if we want to continue to support zips and 32-bit, as the old version will no longer be updated. We'll have to see what exactly is done with zip archives. Perhaps we can do without the library altogether. |
Ok, I've had a look around. We have the following options:
|
There's also a bug in it where the zips are created but unreadable. The zip will open in 7Zip but not in the windows explorer.
I think it might be time to ZipArchive it and keep what function that can be. If the native class can only handle part of the existing functions it's probably better than a massive change like dropping all other architectures. |
We just have to be careful, because the behavior of ZipStream and ZipArchive is different. ZipStream had the disadvantage that on machines with very little RAM (e.g. RPI) it was sometimes not possible to create archives at all (an archive with 1-2 albums with flac files can be 1.5GB). |
First try to get this work... ampache#3928
First try to get this work... ampache#3928
I'm not entirely convinced, but "works for me" |
I wrote a version quickly last night, and I realise what my error was now. addFile without a valid file will break the archive. It's not pretty compared to zipstream but I can at least download a zip in Windows with it |
I think it will take another 1-2 iterations until it's ok. But at least it's no longer a blocker. |
@usox i'm getting a build error on arm for the preview builds on patch7. is this lib amd64 only?
The text was updated successfully, but these errors were encountered: