curl_multi_remove_handle

(PHP 5, PHP 7, PHP 8)

curl_multi_remove_handle从一组 cURL 句柄中移除一个多句柄

说明

curl_multi_remove_handle(CurlMultiHandle $multi_handle, CurlHandle $handle): int

从指定的 multi_handle 中移除指定的 handle 句柄。当移除 handle 后,在此句柄上运行 curl_exec() 也是完全允许的。移除正在使用的 handle 句柄,涉及该句柄的正在进行的传输将有效停止。

参数

multi_handle

curl_multi_init() 返回的 cURL 多个句柄。

handle

curl_init() 返回的 cURL 句柄。

返回值

成功时返回 0,失败时返回 CURLM_XXX 错误代码中的一个。

更新日志

版本 说明
8.0.0 multi_handle expects a CurlMultiHandle instance now; previously, a resource was expected.
8.0.0 handle expects a CurlHandle instance now; previously, a resource was expected.

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top