reference/network/functions/pfsockopen.xml
4e6f0774f03131cbeeb8c21019a690bf97fd22b6
...
...
@@ -9,12 +9,12 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>resource</type><methodname>pfsockopen</methodname>
12
+
<type class="union"><type>resource</type><type>false</type></type><methodname>pfsockopen</methodname>
13
13
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
14
14
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>-1</initializer></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter role="reference">errno</parameter></methodparam>
16
-
<methodparam choice="opt"><type>string</type><parameter role="reference">errstr</parameter></methodparam>
17
-
<methodparam choice="opt"><type>float</type><parameter>timeout</parameter><initializer>ini_get("default_socket_timeout")</initializer></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter role="reference">error_code</parameter><initializer>&null;</initializer></methodparam>
16
+
<methodparam choice="opt"><type>string</type><parameter role="reference">error_message</parameter><initializer>&null;</initializer></methodparam>
17
+
<methodparam choice="opt"><type class="union"><type>float</type><type>null</type></type><parameter>timeout</parameter><initializer>&null;</initializer></methodparam>
18
18
</methodsynopsis>
19
19
<para>
20
20
This function behaves exactly as <function>fsockopen</function> with the
...
...
@@ -31,6 +31,39 @@
31
31
</para>
32
32
</refsect1>
33
33

34
+
<refsect1 role="returnvalues">
35
+
&reftitle.returnvalues;
36
+
<para>
37
+
<function>pfsockopen</function> returns a file pointer which may be used
38
+
together with the other file functions (such as
39
+
<function>fgets</function>, <function>fgetss</function>,
40
+
<function>fwrite</function>, <function>fclose</function>, and
41
+
<function>feof</function>),&return.falseforfailure;.
42
+
</para>
43
+
</refsect1>
44
+

45
+
<refsect1 role="changelog">
46
+
&reftitle.changelog;
47
+
<informaltable>
48
+
<tgroup cols="2">
49
+
<thead>
50
+
<row>
51
+
<entry>&Version;</entry>
52
+
<entry>&Description;</entry>
53
+
</row>
54
+
</thead>
55
+
<tbody>
56
+
<row>
57
+
<entry>8.0.0</entry>
58
+
<entry>
59
+
<parameter>timeout</parameter> is nullable now.
60
+
</entry>
61
+
</row>
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
65
+
</refsect1>
66
+

34
67
<refsect1 role="seealso">
35
68
&reftitle.seealso;
36
69
<para>
...
...
@@ -41,7 +74,6 @@
41
74
</refsect1>
42
75

43
76
</refentry>
44
-

45
77
<!-- Keep this comment at the end of the file
46
78
Local variables:
47
79
mode: sgml
48
80