reference/curl/functions/curl-strerror.xml
b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="function.curl-strerror" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>curl_strerror</refname>
...
...
@@ -10,8 +9,8 @@
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
-
<type>string</type><methodname>curl_strerror</methodname>
14
-
<methodparam><type>int</type><parameter>errornum</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>null</type></type><methodname>curl_strerror</methodname>
13
+
<methodparam><type>int</type><parameter>error_code</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Returns a text error message describing the given error code.
...
...
@@ -23,7 +22,7 @@
23
22
&reftitle.parameters;
24
23
<variablelist>
25
24
<varlistentry>
26
-
<term><parameter>errornum</parameter></term>
25
+
<term><parameter>error_code</parameter></term>
27
26
<listitem>
28
27
<para>
29
28
One of the <link xlink:href="&url.curl.error;">cURL error codes</link> constants.
...
...
@@ -48,7 +47,7 @@
48
47
<programlisting role="php">
49
48
<![CDATA[
50
49
<?php
51
-
// Create a curl handle with a mispelled protocol in URL
50
+
// Create a curl handle with a misspelled protocol in URL
52
51
$ch = curl_init("htp://example.com/");
53
52

54
53
// Send request
...
...
@@ -88,7 +87,6 @@ cURL error (1):
88
87
</refsect1>
89
88

90
89
</refentry>
91
-

92
90
<!-- Keep this comment at the end of the file
93
91
Local variables:
94
92
mode: sgml
95
93