Skip to content

Commit ca220fb

Browse files
authored
PHP 8.4: Document new errors in XML{Reader,Writer} (#4123)
1 parent b94d63f commit ca220fb

File tree

3 files changed

+57
-8
lines changed

3 files changed

+57
-8
lines changed

reference/xmlreader/xmlreader/open.xml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,20 @@
6868

6969
<refsect1 role="errors">
7070
&reftitle.errors;
71-
<para>
72-
This method may be called statically, but prior to PHP 8.0.0, will issue an
73-
<constant>E_DEPRECATED</constant> error in this case.
74-
</para>
71+
<itemizedlist>
72+
<listitem>
73+
<simpara>
74+
Passing an invalid <parameter>encoding</parameter> will throw a
75+
<exceptionname>ValueError</exceptionname>.
76+
</simpara>
77+
</listitem>
78+
<listitem>
79+
<simpara>
80+
This method may be called statically, but prior to PHP 8.0.0, will issue an
81+
<constant>E_DEPRECATED</constant> error in this case.
82+
</simpara>
83+
</listitem>
84+
</itemizedlist>
7585
</refsect1>
7686

7787
<refsect1 role="changelog">
@@ -85,6 +95,13 @@
8595
</row>
8696
</thead>
8797
<tbody>
98+
<row>
99+
<entry>8.4.0</entry>
100+
<entry>
101+
Passing an invalid <parameter>encoding</parameter> will now throw a
102+
<exceptionname>ValueError</exceptionname>.
103+
</entry>
104+
</row>
88105
<row>
89106
<entry>8.0.0</entry>
90107
<entry>

reference/xmlreader/xmlreader/xml.xml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,20 @@
6868

6969
<refsect1 role="errors">
7070
&reftitle.errors;
71-
<para>
72-
This method may be called statically, but prior to PHP 8.0.0, will issue an
73-
<constant>E_DEPRECATED</constant> error in this case.
74-
</para>
71+
<itemizedlist>
72+
<listitem>
73+
<simpara>
74+
Passing an invalid <parameter>encoding</parameter> will throw a
75+
<exceptionname>ValueError</exceptionname>.
76+
</simpara>
77+
</listitem>
78+
<listitem>
79+
<simpara>
80+
This method may be called statically, but prior to PHP 8.0.0, will issue an
81+
<constant>E_DEPRECATED</constant> error in this case.
82+
</simpara>
83+
</listitem>
84+
</itemizedlist>
7585
</refsect1>
7686

7787
<refsect1 role="changelog">
@@ -85,6 +95,13 @@
8595
</row>
8696
</thead>
8797
<tbody>
98+
<row>
99+
<entry>8.4.0</entry>
100+
<entry>
101+
Passing an invalid <parameter>encoding</parameter> will now throw a
102+
<exceptionname>ValueError</exceptionname>.
103+
</entry>
104+
</row>
88105
<row>
89106
<entry>8.0.0</entry>
90107
<entry>

reference/xmlwriter/xmlwriter/startdocument.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@
6868
</para>
6969
</refsect1>
7070

71+
<refsect1 role="errors">
72+
&reftitle.errors;
73+
<simpara>
74+
Passing an <parameter>encoding</parameter> containing null bytes will
75+
throw a <exceptionname>ValueError</exceptionname>.
76+
</simpara>
77+
</refsect1>
78+
7179
<refsect1 role="changelog">
7280
&reftitle.changelog;
7381
<informaltable>
@@ -79,6 +87,13 @@
7987
</row>
8088
</thead>
8189
<tbody>
90+
<row>
91+
<entry>8.4.0</entry>
92+
<entry>
93+
Passing an <parameter>encoding</parameter> containing null bytes will
94+
now throw a <exceptionname>ValueError</exceptionname>.
95+
</entry>
96+
</row>
8297
&xmlwriter.changelog.writer-param;
8398
</tbody>
8499
</tgroup>

0 commit comments

Comments
 (0)