reference/curl/functions/curl-multi-strerror.xml
56171c30f4f4bb558537d9f5b400f21fdd2ebee8
56171c30f4f4bb558537d9f5b400f21fdd2ebee8
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
4
3
<refentry xml:id="function.curl-multi-strerror" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>curl_multi_strerror</refname>
...
...
@@ -10,11 +9,12 @@
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
-
<type>string</type><methodname>curl_multi_strerror</methodname>
14
-
<methodparam><type>int</type><parameter>errornum</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>null</type></type><methodname>curl_multi_strerror</methodname>
13
+
<methodparam><type>int</type><parameter>error_code</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
-
Returns a text error message describing the given CURLM error code.
16
+
Returns a text error message describing the given
17
+
<constant>CURLM_<replaceable>*</replaceable></constant> error code.
18
18
</para>
19
19
20
20
</refsect1>
...
...
@@ -23,10 +23,10 @@
23
23
&reftitle.parameters;
24
24
<variablelist>
25
25
<varlistentry>
26
-
<term><parameter>errornum</parameter></term>
26
+
<term><parameter>error_code</parameter></term>
27
27
<listitem>
28
28
<para>
29
-
One of the <link xlink:href="&url.curl.error;">CURLM error codes</link> constants.
29
+
One of the <constant>CURLM_<replaceable>*</replaceable></constant> constants.
30
30
</para>
31
31
</listitem>
32
32
</varlistentry>
...
...
@@ -40,41 +40,6 @@
40
40
</para>
41
41
</refsect1>
42
42
43
-
<refsect1 role="examples">
44
-
&reftitle.examples;
45
-
<para>
46
-
<example>
47
-
<title><function>curl_multi_strerror</function> example</title>
48
-
<programlisting role="php">
49
-
<![CDATA[
50
-
<?php
51
-
// Create cURL handles
52
-
$ch1 = curl_init("http://example.com"/);
53
-
$ch2 = curl_init("http://php.net/");
54
-
55
-
// Create a cURL multi handle
56
-
$mh = curl_multi_init();
57
-
58
-
// Add the handles to the multi handle
59
-
curl_multi_add_handle($mh, $ch1);
60
-
curl_multi_add_handle($mh, $ch2);
61
-
62
-
// Execute the multi handle
63
-
do {
64
-
$status = curl_multi_exec($mh, $active);
65
-
// Check for errors
66
-
if($status > 0) {
67
-
// Display error message
68
-
echo "ERROR!\n " . curl_multi_strerror($status);
69
-
}
70
-
} while ($status === CURLM_CALL_MULTI_PERFORM || $active);
71
-
?>
72
-
]]>
73
-
</programlisting>
74
-
</example>
75
-
</para>
76
-
</refsect1>
77
-
78
43
<refsect1 role="seealso">
79
44
&reftitle.seealso;
80
45
<para>
...
...
@@ -86,7 +51,6 @@ do {
86
51
</refsect1>
87
52
88
53
</refentry>
89
-
90
54
<!-- Keep this comment at the end of the file
91
55
Local variables:
92
56
mode: sgml
93
57