Re: utf-8 filenames in phar files.
| From: | Dan Ackroyd | Date: | Fri, 14 Feb 2014 16:11:17 +0000 |
| Subject: | Re: utf-8 filenames in phar files. | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72605@lists.php.net to get a copy of this message | ||
Hi Yasuo,
That is not an issue as:
i) Phar files produced on a windows machine should be identical to
those produced on a Linux or OSX box.
ii) There is a test in the phar code, so that if you do have filenames
that are degenerate after normalising, the extraction throws an error.
e.g. for the files
$filename1 = "Am\xC3\xA9lie.txt";
$filename2 = "Am\x65\xCC\x81lie.txt";
If you add both to a phar archive and then attempt to extract them
both you get the error:
"Cannot extract "Amélie.txt" to "output/Amélie.txt", path already
exists"
cheers
Dan