Skip to content

Conversation

@bukka
Copy link
Member

@bukka bukka commented Nov 30, 2025

Currently, it is not possible to change the owner of the link file in ZTS mode because virtual_chmod calls virtual_file_ex with CWD_REALPATH that causes reading the link and updating the path. This changes it CWD_EXPAND which does not do.

@bukka
Copy link
Member Author

bukka commented Nov 30, 2025

This is draft as it will need some test (root only) and it will also require verifying that that CWD_EXPAND is ok as it omits also few other things. Will also need to consider Windows here.

@bukka bukka changed the base branch from PHP-8.3 to PHP-8.4 January 3, 2026 13:17
@bukka bukka closed this Jan 3, 2026
@bukka bukka force-pushed the fs_bug74357_zts_lchown branch from 45ea188 to 5484ebc Compare January 3, 2026 13:42
@bukka
Copy link
Member Author

bukka commented Jan 3, 2026

hmm I somehow accidentally pushed the fix straight to PHP-8.4. I tested it locally and the test is actually limited to root and not windows and the actual effect is visible only in ZTS so it might not show much in CI possible anyway. I also did a bit more checking and there's not much to consider on Win because lchown just does not work there so hopefully it's fine as it applies only to lchown in ZTS and that wasn't really working.

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.

1 participant