2

Experience with the php curl_multi_exec($m,$active) function, seems to confirm that the $active will always go down by one between calls, even if two websites are finished. But is it guaranteed, when using this function, that if you do some really long code in between two calls, that the $active will always drop by one from its last value?

4

1 回答 1

2

PHP 文档底层cURL 函数的文档都没有说明在调用之间仅减 1,因此这可能只是巧合,您当然不应该依赖它,因为它可能随时更改。curl_multi_perform()$active

于 2012-07-05T00:32:45.970 回答