-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Invalid file name in zip file #146
Comments
Yes, this is a bug in PHP AFAIK. https://bugs.php.net/bug.php?id=65815 There is no clear work-for-all-cases workaround if you need to support a wide range of languages. |
@NicolasCARPi I'm not sure is this PHP issue because if I use plain PHP functions
filenames are generated correctly |
Yes you're right! |
@maennchen I'm thinking the With |
Note: I'm wondering if this is not an unarchiver issue. Try to extract with For information this is the code dealing with setting the EFS flag in the archive. |
#147 is adding a note to the readme about this issue. |
Hi there, According to my research, just putting an entry to extra field solve this issue. I also make such patch to python zip module. In File.php, find function buildZip64ExtraBlock, and modify as
BTW, I also apply such issue to python zip module, and works well, ( I add comments with samxiao in it), So I'd like you team can patch this to official release next time. Thank you very much. |
@Xiao-Chong thanks. Could you open a PR for that? |
@maennchen , OKay. Will open a PR later. Thank you. |
Solved with #222 |
Description of the problem
Hi, if I try to use no-ASCII characters in
addFileFromStream/addFile
methods invalid name is generated inzip
file.Example code
$zip->addFileFromStream('љњељњечћш.txt', someMethodToGetStream());
produce different filename from
љњељњечћш.txt
The text was updated successfully, but these errors were encountered: