reference/curl/functions/curl-multi-close.xml
52dc204a77076e1404257cf39f179882b90b5780
...
...
@@ -10,8 +10,9 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>void</type><methodname>curl_multi_close</methodname>
13
-
<methodparam><type>resource</type><parameter>mh</parameter></methodparam>
13
+
<methodparam><type>CurlMultiHandle</type><parameter>multi_handle</parameter></methodparam>
14
14
</methodsynopsis>
15
+
&note.resource-migration-8.0-dead-function;
15
16
<para>
16
17
Closes a set of cURL handles.
17
18
</para>
...
...
@@ -33,6 +34,23 @@
33
34
</para>
34
35
</refsect1>
35
36

37
+
<refsect1 role="changelog">
38
+
&reftitle.changelog;
39
+
<informaltable>
40
+
<tgroup cols="2">
41
+
<thead>
42
+
<row>
43
+
<entry>&Version;</entry>
44
+
<entry>&Description;</entry>
45
+
</row>
46
+
</thead>
47
+
<tbody>
48
+
&curl.changelog.multi-handle-param;
49
+
</tbody>
50
+
</tgroup>
51
+
</informaltable>
52
+
</refsect1>
53
+

36
54
<refsect1 role="examples">
37
55
&reftitle.examples;
38
56
<para>
...
...
@@ -62,11 +80,13 @@ $mh = curl_multi_init();
62
80
curl_multi_add_handle($mh,$ch1);
63
81
curl_multi_add_handle($mh,$ch2);
64
82

65
-
$running=null;
66
-
//execute the handles
83
+
//execute the multi handle
67
84
do {
68
-
curl_multi_exec($mh,$running);
69
-
} while ($running > 0);
85
+
$status = curl_multi_exec($mh, $active);
86
+
if ($active) {
87
+
curl_multi_select($mh);
88
+
}
89
+
} while ($active && $status == CURLM_OK);
70
90

71
91
//close the handles
72
92
curl_multi_remove_handle($mh, $ch1);
...
...
@@ -93,7 +113,6 @@ curl_multi_close($mh);
93
113
</refsect1>
94
114

95
115
</refentry>
96
-

97
116
<!-- Keep this comment at the end of the file
98
117
Local variables:
99
118
mode: sgml
100
119