reference/sockets/functions/socket-import-stream.xml
14dc7c47365f2b71f6c907a5ba5bccf42534d5a9
...
...
@@ -1,7 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-import-stream">
3
+
<refentry xml:id="function.socket-import-stream" xmlns="http://docbook.org/ns/docbook">
5
4
<refnamediv>
6
5
<refname>socket_import_stream</refname>
7
6
<refpurpose>Import a stream</refpurpose>
...
...
@@ -10,7 +9,7 @@
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
-
<type>resource</type><methodname>socket_import_stream</methodname>
12
+
<type class="union"><type>Socket</type><type>false</type></type><methodname>socket_import_stream</methodname>
14
13
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
...
...
@@ -37,10 +36,33 @@
37
36
<refsect1 role="returnvalues">
38
37
&reftitle.returnvalues;
39
38
<para>
40
-
Returns &false; or &null; on failure.
39
+
Returns &false; on failure.
41
40
</para>
42
41
</refsect1>
43
42

43
+
<refsect1 role="changelog">
44
+
&reftitle.changelog;
45
+
<informaltable>
46
+
<tgroup cols="2">
47
+
<thead>
48
+
<row>
49
+
<entry>&Version;</entry>
50
+
<entry>&Description;</entry>
51
+
</row>
52
+
</thead>
53
+
<tbody>
54
+
<row>
55
+
<entry>8.0.0</entry>
56
+
<entry>
57
+
On success, this function returns a <classname>Socket</classname> instance now;
58
+
previously, a <type>resource</type> was returned.
59
+
</entry>
60
+
</row>
61
+
</tbody>
62
+
</tgroup>
63
+
</informaltable>
64
+
</refsect1>
65
+

44
66
<refsect1 role="examples">
45
67
&reftitle.examples;
46
68
<para>
...
...
@@ -68,7 +90,6 @@ $sock = socket_import_stream($stream);
68
90
</refsect1>
69
91

70
92
</refentry>
71
-

72
93
<!-- Keep this comment at the end of the file
73
94
Local variables:
74
95
mode: sgml
75
96