Doc #64443 [Opn->Dup]: "CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned"

From: Date: Fri, 25 Apr 2014 12:09:38 +0000
Subject: Doc #64443 [Opn->Dup]: "CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11173@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64443&edit=1 ID: 64443 Updated by: mike@php.net Reported by: alhabshi3k at gmail dot com Summary: "CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned" -Status: Open +Status: Duplicate Type: Documentation Problem Package: cURL related Operating System: windows PHP Version: 5.4.13 Block user comment: N Private report: N New Comment: Duplicate of bug #60652 Previous Comments: ------------------------------------------------------------------------ [2013-03-17 18:53:57] alhabshi3k at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.curl-multi-exec#refsect1-function.curl-multi-exec-examples --- In: Example #1 curl_multi_exec() , executing curl_multi_exec and processing url channels handles based on CURLM_CALL_MULTI_PERFORM defined constant will no be valid. This is due the development in libCurl that is decided by its team. this is issue is found in LibCurl version 7.20.0 and above, where "CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned,as documented" (1) The PHP 5.4.12 extension of curl is based on LibCurl 7.27.0. Therefore, the example runs until timeout.with out a valid result. Reference : (1) http://comments.gmane.org/gmane.comp.web.curl.library/36537 Test script: --------------- //execute the handles (scrap from Example #1 curl_multi_exec ) where the problem. do { $mrc = curl_multi_exec($mh, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); while ($active && $mrc == CURLM_OK) { if (curl_multi_select($mh) != -1) { do { $mrc = curl_multi_exec($mh, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); } } //-------------------------------------- /* The old code example work like charm , as in these cases do { curl_multi_exec($mh,$active); } while ($active > 0); */ Expected result: ---------------- - output of urls resource contents. - $mrc variable should rotate values of active running handle count. - CURLM_CALL_MULTI_PERFORM should count of actual handles in the stack,if it is valid. Actual result: -------------- timeout... :( ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64443&edit=1

« previous php.doc.bugs (#11173) next »