chobie / php-uv

libuv php extension
184 stars 21 forks source link

uv_fs_close on an unexisting stream doesn't return an error #36

Open csaoh opened 11 years ago

csaoh commented 11 years ago

Looks like uv_fs_close always returns the initial stream, even when this stream doesn't exist and close fails.

For example,

uv_fs_close($loop, 42, function ($result){});

returns 42

uv_fs_close($loop, 0, function ($result){});

returns 0, and so on.