Skip to content

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Sep 3, 2024

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

chmod() and chgrp() are not supported on Windows (see this and this). I propose to skip the logic of these methods when running on Windows.

@nicolas-grekas
Copy link
Member

On Windows, they will throw an exception, isn't it? I'd rather keep these as is if yes. Maybe they can be supported in the future.

@alexandre-daubois alexandre-daubois force-pushed the fs-win branch 2 times, most recently from 2d79584 to 8342225 Compare September 3, 2024 09:35
@alexandre-daubois
Copy link
Member Author

Alright. I propose to still add the comment with the link to PHP doc. I think it is always nice for the DX to have this kind of info next to the method.

@alexandre-daubois alexandre-daubois changed the title [Filesystem] Skip chown() and chgrp() on Windows [Filesystem] Add a warning about chown() and chgrp() on Windows Sep 3, 2024
@OskarStark OskarStark changed the title [Filesystem] Add a warning about chown() and chgrp() on Windows [Filesystem] Add a warning about chown() and chgrp() on Windows Sep 3, 2024
@nicolas-grekas nicolas-grekas modified the milestones: 7.2, 5.4 Sep 11, 2024
@nicolas-grekas nicolas-grekas changed the base branch from 7.2 to 5.4 September 11, 2024 10:39
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit fea8f98 into symfony:5.4 Sep 11, 2024
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants