Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions appendices/migration84/incompatible.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@
<simpara>
The <literal>"allowed_classes"</literal> option for
<function>unserialize</function> now throws
<exceptionname>TypeError</exceptionname>s and
<exceptionname>ValueError</exceptionname>s if it is not an
<type>array</type> of class names.
<exceptionname>TypeError</exceptionname> and
<exceptionname>ValueError</exceptionname> if it is neither an
<type>array</type> of class names nor a <type>boolean</type>.
</simpara>
</sect3>

Expand Down
13 changes: 7 additions & 6 deletions reference/var/functions/unserialize.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@
</simpara>
<simpara>
As of PHP 8.4.0, if the <literal>allowed_classes</literal> element of
<parameter>options</parameter> is not an <type>array</type> of class names,
<function>unserialize</function> throws <exceptionname>TypeError</exceptionname>s
and <exceptionname>ValueError</exceptionname>s.
<parameter>options</parameter> is neither a <type>array</type> of class names
nor a <type>boolean</type>, <function>unserialize</function> throws
<exceptionname>TypeError</exceptionname> and <exceptionname>ValueError</exceptionname>.
</simpara>
</refsect1>

Expand All @@ -167,9 +167,10 @@
<row>
<entry>8.4.0</entry>
<entry>
Now throws <exceptionname>TypeError</exceptionname>s and
<exceptionname>ValueError</exceptionname>s if the <literal>allowed_classes</literal>
element of <parameter>options</parameter> is not an <type>array</type> of class names.
Now throws <exceptionname>TypeError</exceptionname> and
<exceptionname>ValueError</exceptionname> if the <literal>allowed_classes</literal>
element of <parameter>options</parameter> is neither a <type>array</type> of class names
nor a <type>boolean</type>.
</entry>
</row>
<row>
Expand Down