composer archive --format=zip does not preserve permission umask on files #8330
It is noticed when using composer/satis that during the archive process to create dist of repository tags/branches that permission umask on files that may have an executable flag set is not maintained.
composer/satis simply uses the composer archive functionality where the issue lies.
I have traced this down to the ZipArchiver not using the setExternalAttributesName applied on the resultant file in the zip archive.
I have a patch forthcoming to address this issue for review.
Unless someone can explain if this was intentional.
This is related to composer/satis#314
@jimmy-ho make sure to keep the ZipArchiver working on PHP < 5.6 (as the min version of PHP supported by Composer is 5.3), by skipping the