When I use uv_fs_open and uv_fs_mkdir, using 777 mode results in files having 755 permissions.
Same for 222, which gives 200.
111 and 444 work fine though.
Example:
uv_fs_open($loop, $path, $flags, \UV::S_IRWXO | \UV::S_IRWXG | \UV::S_IRWXU, function ($r)
When I use uv_fs_open and uv_fs_mkdir, using 777 mode results in files having 755 permissions. Same for 222, which gives 200. 111 and 444 work fine though.
Example:
results in