CURLM_CALL_MULTI_PERFORM deprecated

大城市里の小女人 提交于 2019-12-05 02:02:32

问题


CURLM_CALL_MULTI_PERFORM was deprecated.

    do {
        $mrc = curl_multi_exec($mc, $active);
    } while ($mrc == CURLM_CALL_MULTI_PERFORM);

Is there any alternative? Curl version 7.27.0


回答1:


try like:

do {
    $mrc = curl_multi_exec($mc, $active);
} while ($active > 0);



回答2:


It's not really clear, if CURLM_CALL_MULTI_PERFORM is deprecated or not.

The symbol exists. A removal was not mentioned in the 7.27.0 Change Notes.

Like @tne pointed out in his comment: it seems reasonable to ignore it.



来源:https://stackoverflow.com/questions/19490837/curlm-call-multi-perform-deprecated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!