reference/stream/functions/stream-context-get-default.xml
6a5b227850bbad1ec81fd52b6a08e12e3f2c03ac
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>resource</type><methodname>stream_context_get_default</methodname>
13
-
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<simpara>
16
16
Returns the default stream context which is used whenever file operations
...
...
@@ -31,14 +31,8 @@
31
31
<simpara>
32
32
<parameter>options</parameter> must be an associative
33
33
array of associative arrays in the format
34
-
<literal>$arr['wrapper']['option'] = $value</literal>.
34
+
<literal>$arr['wrapper']['option'] = $value</literal>, or &null;.
35
35
</simpara>
36
-
<note>
37
-
<para>
38
-
As of PHP 5.3.0, the <function>stream_context_set_default</function> function
39
-
can be used to set the default context.
40
-
</para>
41
-
</note>
42
36
</listitem>
43
37
</varlistentry>
44
38
</variablelist>
...
...
@@ -52,6 +46,28 @@
52
46
</para>
53
47
</refsect1>
54
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
+
<row>
61
+
<entry>8.0.0</entry>
62
+
<entry>
63
+
<parameter>options</parameter> is now nullable.
64
+
</entry>
65
+
</row>
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
69
+
</refsect1>
70
+

55
71
<refsect1 role="examples">
56
72
&reftitle.examples;
57
73
<para>
...
...
@@ -104,13 +120,13 @@ readfile('http://www.example.com', false, $alternate);
104
120
<para>
105
121
<simplelist>
106
122
<member><function>stream_context_create</function></member>
123
+
<member><function>stream_context_set_default</function></member>
107
124
<member>Listing of supported wrappers with context options (<xref linkend="wrappers"/>).</member>
108
125
</simplelist>
109
126
</para>
110
127
</refsect1><!-- }}} -->
111
128

112
129
</refentry>
113
-

114
130
<!-- Keep this comment at the end of the file
115
131
Local variables:
116
132
mode: sgml
117
133