diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-01-26 16:50:04 +0100 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-01-26 19:14:25 +0100 |
| commit | 6a0b889f57b5f3c6b72253c0919eab10c7496263 (patch) | |
| tree | 8e95d4cf698f66cfe6ab2352f2ec443a429a02bb /ext/soap/php_sdl.c | |
| parent | 94af11d5e169451e4f18c60ee8e3ac84b066b589 (diff) | |
| download | php-git-6a0b889f57b5f3c6b72253c0919eab10c7496263.tar.gz | |
Fix #70091: Phar does not mark UTF-8 filenames in ZIP archives
The default encoding of filenames in a ZIP archive is IBM Code Page
437. Phar, however, only supports UTF-8 filenames. Therefore we have
to mark filenames as being stored in UTF-8 by setting the general
purpose bit 11 (the language encoding flag).
The effect of not setting this bit for non ASCII filenames can be seen
in popular tools like 7-Zip and UnZip, but not when extracting the
archives via ext/phar (which is agnostic to the filename encoding), or
via ext/zip (which guesses the encoding). Thus we add a somewhat
brittle low-level test case.
Closes GH-6630.
Diffstat (limited to 'ext/soap/php_sdl.c')
0 files changed, 0 insertions, 0 deletions
