问题
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