reference/curl/functions/curl-init.xml
b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>resource</type><methodname>curl_init</methodname>
13
-
<methodparam choice="opt"><type>string</type><parameter>url</parameter><initializer>&null;</initializer></methodparam>
12
+
<type class="union"><type>CurlHandle</type><type>false</type></type><methodname>curl_init</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>url</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Initializes a new session and return a cURL handle for use with the
...
...
@@ -50,6 +50,35 @@
50
50
</para>
51
51
</refsect1>
52
52
53
+
<refsect1 role="changelog">
54
+
&reftitle.changelog;
55
+
<informaltable>
56
+
<tgroup cols="2">
57
+
<thead>
58
+
<row>
59
+
<entry>&Version;</entry>
60
+
<entry>&Description;</entry>
61
+
</row>
62
+
</thead>
63
+
<tbody>
64
+
<row>
65
+
<entry>8.0.0</entry>
66
+
<entry>
67
+
On success, this function returns a <classname>CurlHandle</classname> instance now;
68
+
previously, a <type>resource</type> was returned.
69
+
</entry>
70
+
</row>
71
+
<row>
72
+
<entry>8.0.0</entry>
73
+
<entry>
74
+
<parameter>url</parameter> is nullable now.
75
+
</entry>
76
+
</row>
77
+
</tbody>
78
+
</tgroup>
79
+
</informaltable>
80
+
</refsect1>
81
+

53
82
<refsect1 role="examples">
54
83
&reftitle.examples;
55
84
<para>
...
...
@@ -90,7 +119,6 @@ curl_close($ch);
90
119
</refsect1>
91
120

92
121
</refentry>
93
-

94
122
<!-- Keep this comment at the end of the file
95
123
Local variables:
96
124
mode: sgml
97
125