-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Php 32bit - Zip-stream with version 2.1 instead of 3.1 #2934
base: master
Are you sure you want to change the base?
Conversation
9e5b08a
to
98dd8f9
Compare
@RustyPotato could you try this branch ? |
@RustyPotato you may need to remove the composer.lock before doing your install, but in theory it should now support your 32 bit install. |
Couldn't the zip creation also be outsourced to the client? the latest 2 version would be 2.4.0 |
The problem is that the response is in streaming mode, In version 3 of Lychee, we were creating the zip file serverside before sending it. This has changed by the use of ZipStream, but I am not knowledgeable enough of how streaming files works with http, not how it would be possible for the client to know, that is one file, that is the next file. |
@RustyPotato please confirm otherwise I won't be able to merge this. :) |
My apologies for the long delay, this took longer than expected to get back to. I have gotten it to work, and it's running successfully. (Link). Now just for me to set all the configs properly. As we were messing with the zip library, had to double check what that'd look like. It gives off an empty zip file. So if I want that fixed, I'll probably need to do so myself eventually, but it's not an essential feature for me. Having said that, it seems the demo site is also having difficulties with it too. (Link) |
I checked on 64bit install it is working as expected. I will try to see with the 32bit version... I can confirm the empty zip behaviour on the 32 bit. |
@RustyPotato this should fix the empty zip issue you were observing. |
Fixes #2933
We leverage 2 traits one for each implementation of ZipStream.
The code is moved to a BaseArchive class and the installation decides which class to use.