1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00
Files
archived-php-src/ext/phar/tests
Christoph M. Becker 6a0b889f57 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.
2021-01-26 19:14:25 +01:00
..
2018-01-28 21:51:25 +01:00
2019-07-21 00:49:35 +02:00
2018-01-28 21:51:25 +01:00
2018-02-08 10:32:08 +01:00
2018-01-15 12:20:10 +01:00
2015-05-10 02:24:29 -07:00
2018-09-21 14:12:25 +02:00
2016-02-15 09:00:07 +01:00
2016-03-09 14:16:29 +01:00
2020-09-03 10:29:38 +02:00
2016-06-21 16:20:03 +02:00
2018-12-02 12:06:13 -08:00
2019-10-10 16:14:21 +02:00
2019-07-21 00:49:35 +02:00
2019-05-14 10:11:29 +02:00
2016-11-20 14:16:50 +01:00
2019-05-14 10:11:29 +02:00
2019-05-14 10:11:29 +02:00
2018-06-30 15:35:43 +02:00