note 123764 added to function.curl-multi-exec

From: Date: Wed, 10 Apr 2019 01:17:11 +0000
Subject: note 123764 added to function.curl-multi-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-210581@lists.php.net to get a copy of this message
/!\ ATTENTION /!\ Several of the non-downvoted notes on this page are using outdated info. The CURLM_CALL_MULTI_PERFORM return code has been defunct since circa 2012, at least seven years ago. Quoting the author of curl, from https://curl.haxx.se/mail/lib-2012-08/0042.html: > CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned, as documented. > During the first decade or so of libcurl's multi interface, I never saw a single proper > use of that feature. I did however see numerous mistakes and misunderstandings. That made me decide > that the feature wasn't important or good enough, so since 7.20.0 CURLM_CALL_MULTI_PERFORM is > no more. Discovered all of this thanks to https://stackoverflow.com/q/19490837/3229684, which suggested the following replacement while loop: <?php do { $mrc = curl_multi_exec($mc, $active); } while ($active > 0); ?> https://www.google.com/search?q=CURLM_CALL_MULTI_PERFORM <-- probably the most future-proof useful link I can put here ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.142 (proxied: 121.218.160.115) ---- Manual Page -- http://php.net/manual/en/function.curl-multi-exec.php Edit -- https://master.php.net/note/edit/123764 Del: integrated -- https://master.php.net/note/delete/123764/integrated Del: useless -- https://master.php.net/note/delete/123764/useless Del: bad code -- https://master.php.net/note/delete/123764/bad+code Del: spam -- https://master.php.net/note/delete/123764/spam Del: non-english -- https://master.php.net/note/delete/123764/non-english Del: in docs -- https://master.php.net/note/delete/123764/in+docs Del: other reasons-- https://master.php.net/note/delete/123764 Reject -- https://master.php.net/note/reject/123764 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210581) next »