Repository navigation
Added permission tests for "other" access - #214
Conversation
- After some manual testing on real files, it doesn't seem like Windows honors the group/other permissions. - Could only get is_readable to fail by manually opening file properties, going to Security tab, and editing the permissions for the user.
|
OK, I noticed the build was failing only for Windows so I loaded up a Windows VM and got git and everything else installed in there and did some testing in the Windows environment. I tested against this branch and the 1.6.5 release with just the basic test outlined in #167. In both cases, the On all *nix systems, everything seems to work as expected. |
If this happens with a real file, does that mean this is a PHP bug on Windows or am I misunderstanding things? Or does PHP not handle file permissions on Windows the same way as *nix? I'm not familiar with the Windows filesystem so do we need to handle the group permissions differently? |
Have you tested if vfsStream is called at all? I have the suspicion that PHP on Windows might short circuit here and not even call the stream wrapper. If that's the case it should be added to the list of known issues. |
|
It does goes through the I'm more curious if this is because Windows doesn't use the UID/GID like *nix does. Windows always sets those values to I also thought it might be an issue with I'm honestly not sure if it's a possible bug or if it's just because Windows does permissions differently. My real file test I don't think was sufficient enough to call anything a bug, as I don't know of a good way to do a real We could definitely add it as a known issue if that's the way we want to go. I poked at this for hours last night and couldn't get anything to work. The only good thing that came out of it is that I couldn't prove a difference between 1.6.5 (and 1.6.8) and 2.x, like the issue suggested was the case. On Windows, both branches failed on the same |
|
Thanks for trying to find out what's happening! I guess it needs someone who wants to dig into the PHP source itself to understand and find out what's going on. For the time being my suggestion would be to merge the PR as is, and to add it as a known issue. |
|
Updated known issues list |
Issue #167 noted a permission difference. The issue seems to have gone away and is working as expected. Adding tests to prevent regression.
Closes #167