note 85607 added to function.curl-multi-close

From: Date: Mon, 08 Sep 2008 20:58:16 +0000
Subject: note 85607 added to function.curl-multi-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-144244@lists.php.net to get a copy of this message
curl_multi_close seems to close the curl_multi handle, but not each of the individual curl handles. at least in the PHP 5.3 development build I am using, these each need to be closed manually. I would recommend the final lines of this example be updated to: <?php //close the handles curl_multi_remove_handle($mh, $ch1); curl_close($ch1); curl_multi_remove_handle($mh, $ch2); curl_close($ch2); curl_multi_close($mh); ?> ---- Server IP: 208.69.120.35 Probable Submitter: 64.202.160.65 ---- Manual Page -- http://www.php.net/manual/en/function.curl-multi-close.php Edit -- https://master.php.net/note/edit/85607 Del: integrated -- https://master.php.net/note/delete/85607/integrated Del: useless -- https://master.php.net/note/delete/85607/useless Del: bad code -- https://master.php.net/note/delete/85607/bad+code Del: spam -- https://master.php.net/note/delete/85607/spam Del: non-english -- https://master.php.net/note/delete/85607/non-english Del: in docs -- https://master.php.net/note/delete/85607/in+docs Del: other reasons-- https://master.php.net/note/delete/85607 Reject -- https://master.php.net/note/reject/85607 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144244) next »