File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 3dbbc167de33c0214f454b1d0399a32c88127c10 Maintainer: hirokawa Status: ready -->
3
+ <!-- EN-Revision: d75036c386e37ce56dafb7607b72aedc3e33fe09 Maintainer: hirokawa Status: ready -->
4
4
<!-- Credits: mumumu -->
5
5
<refentry xml : id =" function.unserialize" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
90
90
<tbody >
91
91
<row >
92
92
<entry ><literal >allowed_classes</literal ></entry >
93
- <entry ><type >mixed </type ></entry >
93
+ <entry ><type >array|bool </type ></entry >
94
94
<entry >
95
95
<simpara >
96
96
受け付けるクラス名の配列を指定します。あらゆるクラスを拒否する場合は
145
145
146
146
<refsect1 role =" errors" >
147
147
&reftitle.errors;
148
- <para >
148
+ <simpara >
149
149
オブジェクトは、
150
150
アンシリアライズを実行するハンドラで <classname >Throwable</classname > をスローしても構いません。
151
- </para >
151
+ </simpara >
152
+ <simpara >
153
+ PHP 8.4.0 以降では、<parameter >options</parameter > の <literal >allowed_classes</literal > 要素が
154
+ クラス名の <type >array</type > でない場合、
155
+ <function >unserialize</function > は <exceptionname >TypeError</exceptionname > と
156
+ <exceptionname >ValueError</exceptionname > をスローします。
157
+ </simpara >
152
158
</refsect1 >
153
159
154
160
<refsect1 role =" changelog" >
163
169
</row >
164
170
</thead >
165
171
<tbody >
172
+ <row >
173
+ <entry >8.4.0</entry >
174
+ <entry >
175
+ <parameter >options</parameter > の <literal >allowed_classes</literal > 要素が
176
+ クラス名の <type >array</type > でない場合、
177
+ <exceptionname >TypeError</exceptionname > と <exceptionname >ValueError</exceptionname > を
178
+ スローするようになりました。
179
+ </entry >
180
+ </row >
166
181
<row >
167
182
<entry >8.3.0</entry >
168
183
<entry >
You can’t perform that action at this time.
0 commit comments