php-uv icon indicating copy to clipboard operation
php-uv copied to clipboard

uv_fs_close on an unexisting stream doesn't return an error

Open csaoh opened this issue 12 years ago • 0 comments

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.

csaoh avatar Feb 13 '13 11:02 csaoh