chobie / php-uv

libuv php extension
184 stars 21 forks source link

Writing permissions for GRP and OTH do not seem to work #33

Closed csaoh closed 11 years ago

csaoh commented 11 years ago

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)

results in

-rwxr-xr-x  1 andrey  staff     6 12 fév 12:13 test-file
csaoh commented 11 years ago

uv_fs_chmod works fine with the same parameters though

csaoh commented 11 years ago

Alright, nevermind, it seems to be a problem within libuv itself.

csaoh commented 11 years ago

Double-nevermind, i was just being dumb.