CakeFest 2024: The Official CakePHP Conference

curl_multi_errno

(PHP 7 >= 7.1.0, PHP 8)

curl_multi_errno返回上一次 curl 批处理的错误码

说明

curl_multi_errno(CurlMultiHandle $multi_handle): int

返回整型数字,为上次 curl 批处理错误码。

参数

multi_handle

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

返回值

返回整型数字,包含上次 curl 批处理的错误码。

更新日志

版本 说明
8.0.0 失败时此函数不再返回 false
8.0.0 multi_handle expects a CurlMultiHandle instance now; previously, a resource was expected.

参见

add a note

User Contributed Notes

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