Re: utf-8 filenames in phar files.
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
Thread (24 messages)