reference/sockets/functions/socket-clear-error.xml
14dc7c47365f2b71f6c907a5ba5bccf42534d5a9
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-clear-error">
3
+
<refentry xml:id="function.socket-clear-error" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_clear_error</refname>
6
6
<refpurpose>Clears the error on the socket or the last error code</refpurpose>
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>void</type><methodname>socket_clear_error</methodname>
13
-
<methodparam choice="opt"><type>resource</type><parameter>socket</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>Socket</type><type>null</type></type><parameter>socket</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
This function clears the error code on the given socket or the global
...
...
@@ -31,7 +31,7 @@
31
31
<term><parameter>socket</parameter></term>
32
32
<listitem>
33
33
<para>
34
-
A valid socket resource created with <function>socket_create</function>.
34
+
A <classname>Socket</classname> instance created with <function>socket_create</function>.
35
35
</para>
36
36
</listitem>
37
37
</varlistentry>
...
...
@@ -46,6 +46,29 @@
46
46
</para>
47
47
</refsect1>
48
48

49
+
<refsect1 role="changelog">
50
+
&reftitle.changelog;
51
+
<informaltable>
52
+
<tgroup cols="2">
53
+
<thead>
54
+
<row>
55
+
<entry>&Version;</entry>
56
+
<entry>&Description;</entry>
57
+
</row>
58
+
</thead>
59
+
<tbody>
60
+
&sockets.changelog.socket-param;
61
+
<row>
62
+
<entry>8.0.0</entry>
63
+
<entry>
64
+
<parameter>socket</parameter> is nullable now.
65
+
</entry>
66
+
</row>
67
+
</tbody>
68
+
</tgroup>
69
+
</informaltable>
70
+
</refsect1>
71
+

49
72
<refsect1 role="seealso">
50
73
&reftitle.seealso;
51
74
<para>
...
...
@@ -57,7 +80,6 @@
57
80
</refsect1>
58
81

59
82
</refentry>
60
-

61
83
<!-- Keep this comment at the end of the file
62
84
Local variables:
63
85
mode: sgml
64
86