hphp/hack/manual/apis/Functions/fb_curl_multi_fdset.md
:::info[Note] This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information. :::
extracts file descriptor information from a multi handle
function fb_curl_multi_fdset(
resource $mh,
inout array& $read_fd_set,
inout array& $write_fd_set,
inout array& $exc_fd_set,
inout int& $max_fd,
): mixed;
resource $mh - A cURL multi handle returned by
curl_multi_init().inout array& $read_fd_set - read setinout array& $write_fd_set - write setinout array& $exc_fd_set - exception setinout int& $max_fd - If no file descriptors are set, $max_fd will
contain -1. Otherwise it will contain the higher descriptor number.mixed - - Returns 0 on success, or one of the CURLM_XXX errors code.