Skip to content

Commit b4465eb

Browse files
committed
Document error change to libxml_set_streams_context()
1 parent ac3a6be commit b4465eb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

reference/libxml/functions/libxml-set-streams-context.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,39 @@
4242
</para>
4343
</refsect1>
4444

45+
<refsect1 role="errors">
46+
&reftitle.errors;
47+
<simpara>
48+
Throws a <classname>TypeError</classname> when a non-stream resource is
49+
passed to <parameter>context</parameter>.
50+
</simpara>
51+
</refsect1>
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.4.0</entry>
66+
<entry>
67+
<function>libxml_set_streams_context</function> now throws a
68+
<classname>TypeError</classname> when a non-stream resource is passed
69+
to <parameter>context</parameter>, instead of throwing later when the
70+
context is used.
71+
</entry>
72+
</row>
73+
</tbody>
74+
</tgroup>
75+
</informaltable>
76+
</refsect1>
77+
4578
<refsect1 role="examples">
4679
&reftitle.examples;
4780
<para>

0 commit comments

Comments
 (0)