Topic: Permission rights using ZipArchive
Hi Remi and community,
I hope that somebody can help me with this small problem.
Since PHP 5.6 (and maybe PECL zip >= 1.12.4) the permission rights of files and folders are not set properly using the PHP function ZipArchive (http://php.net/manual/de/class.ziparchive.php).
The original files have 0644 and folder 0755 but the rights in the zip package for files are 0666 and folders 0777. I've tested it again with an older version of PHP (5.5.x) and all rights were set properly.
I already tried to set the rights with setExternalAttributesName using the example code but then the files have no rights at all 0000 instead of the original rights...
I don't know how to solve it. Is it a bug or just wrong usage of the function?
Thank you in advance!