Closed metanav closed 10 years ago
The patch above addresses this. Kind of. There are some limitations:
0755
, regardless of what the source directory was. The only way I can think of to fix this is to iterate through the original source directory, pull the matching file out of the archive, and call PharFileInfo::chmod()
on it. I suspect this would be ridiculously slow, but will be trying it shortly.That said, I did verify that the changes I introduced are correctly setting the directory and file permissions in the temporary directory we package from. The question is if we can find a routine that will ensure those permissions are retained in the package.
In doing some work on this, I discovered that "directories" in a PharData/Phar file are metadata only, and thus cannot accept a chmod
operation (actually raises a fatal error when you try).
As such, I cannot do anything more on this. You will need to add some logic when deploying to set directory permissions if those present in the archives will not work.
The zfdeploy.phar build command does not preserve the file permission in the created package. This functionality should be included as it would help in deployment process automation.