note 83866 added to function.curl-copy-handle
| From: | ac221 at sussex dot ac dot uk | Date: | Mon, 16 Jun 2008 10:00:46 +0000 |
| Subject: | note 83866 added to function.curl-copy-handle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140491@lists.php.net to get a copy of this message | ||
Hmm I don't have a problem with this, using PHP 5.2.5 libcurl 7.16.3 maybe it's been fixed
...
I am m having trouble getting curl_copy_handle to copy all the curlopts across though...
protected function curlMultiPrime(array $reqArr){
// Store the request array so we can reinitialise the multi handle
$this->reqArr = $reqArr;
// Close existing curl uni handles
$this->closeMultiCurlUniHandles();
foreach($reqArr as $curlConf){
if(!($curlConf instanceof curlConfRequest ))
throw new curlConfException('All objects passed to configure requests must be instances of
curlConfRequest.',curlConfException::CURL_INVALID_CONF_OBJ);
if(!$cch = curl_copy_handle($this->curlHandle)){
throw new curlException('Failed to clone template curl handle.',$this->curlHandle);
}else{
curl_setopt_array($cch,$curlConf->getCurlOpts());
}
if(curl_multi_add_handle($this->curlMultiHandle,$cch) === 0){
$this->curlUniHandleRef[] = $cch;
}else{
throw new curlException('Failed to add curl handle to multi stack.',$cch);
}
}
}
----
Server IP: 92.48.100.16
Probable Submitter: 139.184.30.133 (proxied: 139.184.135.27)
----
Manual Page -- http://www.php.net/manual/en/function.curl-copy-handle.php
Edit -- https://master.php.net/note/edit/83866
Del: integrated -- https://master.php.net/note/delete/83866/integrated
Del: useless -- https://master.php.net/note/delete/83866/useless
Del: bad code -- https://master.php.net/note/delete/83866/bad+code
Del: spam -- https://master.php.net/note/delete/83866/spam
Del: non-english -- https://master.php.net/note/delete/83866/non-english
Del: in docs -- https://master.php.net/note/delete/83866/in+docs
Del: other reasons-- https://master.php.net/note/delete/83866
Reject -- https://master.php.net/note/reject/83866
Search -- https://master.php.net/manage/user-notes.php