curl_multi_select

(PHP 5, PHP 7, PHP 8)

curl_multi_selectWait for activity on any curl_multi connection

Опис

curl_multi_select(CurlMultiHandle $multi_handle, float $timeout = 1.0): int

Blocks until there is activity on any of the curl_multi connections.

Параметри

mh

Мультидескриптор cURL, якого повертає curl_multi_init().

timeout

Time, in seconds, to wait for a response.

Значення, що повертаються

On success, returns the number of descriptors contained in the descriptor sets. This may be 0 if there was no activity on any of the descriptors. On failure, this function will return -1 on a select failure (from the underlying select system call).

Журнал змін

Версія Опис
8.0.0 multi_handle тепер має бути примірником класу CurlMultiHandle; раніше очікувався resource.

Прогляньте також