Skip to content

Commit

Permalink
PHP 8.4: Document new errors in XML{Reader,Writer} (#4123)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos authored Nov 21, 2024
1 parent b94d63f commit ca220fb
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 8 deletions.
25 changes: 21 additions & 4 deletions reference/xmlreader/xmlreader/open.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,20 @@

<refsect1 role="errors">
&reftitle.errors;
<para>
This method may be called statically, but prior to PHP 8.0.0, will issue an
<constant>E_DEPRECATED</constant> error in this case.
</para>
<itemizedlist>
<listitem>
<simpara>
Passing an invalid <parameter>encoding</parameter> will throw a
<exceptionname>ValueError</exceptionname>.
</simpara>
</listitem>
<listitem>
<simpara>
This method may be called statically, but prior to PHP 8.0.0, will issue an
<constant>E_DEPRECATED</constant> error in this case.
</simpara>
</listitem>
</itemizedlist>
</refsect1>

<refsect1 role="changelog">
Expand All @@ -85,6 +95,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Passing an invalid <parameter>encoding</parameter> will now throw a
<exceptionname>ValueError</exceptionname>.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
25 changes: 21 additions & 4 deletions reference/xmlreader/xmlreader/xml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,20 @@

<refsect1 role="errors">
&reftitle.errors;
<para>
This method may be called statically, but prior to PHP 8.0.0, will issue an
<constant>E_DEPRECATED</constant> error in this case.
</para>
<itemizedlist>
<listitem>
<simpara>
Passing an invalid <parameter>encoding</parameter> will throw a
<exceptionname>ValueError</exceptionname>.
</simpara>
</listitem>
<listitem>
<simpara>
This method may be called statically, but prior to PHP 8.0.0, will issue an
<constant>E_DEPRECATED</constant> error in this case.
</simpara>
</listitem>
</itemizedlist>
</refsect1>

<refsect1 role="changelog">
Expand All @@ -85,6 +95,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Passing an invalid <parameter>encoding</parameter> will now throw a
<exceptionname>ValueError</exceptionname>.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
15 changes: 15 additions & 0 deletions reference/xmlwriter/xmlwriter/startdocument.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<simpara>
Passing an <parameter>encoding</parameter> containing null bytes will
throw a <exceptionname>ValueError</exceptionname>.
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -79,6 +87,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Passing an <parameter>encoding</parameter> containing null bytes will
now throw a <exceptionname>ValueError</exceptionname>.
</entry>
</row>
&xmlwriter.changelog.writer-param;
</tbody>
</tgroup>
Expand Down

0 comments on commit ca220fb

Please sign in to comment.