diff --git a/reference/var/functions/unserialize.xml b/reference/var/functions/unserialize.xml index 7ac4859042..296014e9b3 100644 --- a/reference/var/functions/unserialize.xml +++ b/reference/var/functions/unserialize.xml @@ -1,6 +1,6 @@ - + @@ -90,7 +90,7 @@ allowed_classes - mixed + array|bool 受け付けるクラス名の配列を指定します。あらゆるクラスを拒否する場合は @@ -145,10 +145,16 @@ &reftitle.errors; - + オブジェクトは、 アンシリアライズを実行するハンドラで Throwable をスローしても構いません。 - + + + PHP 8.4.0 以降では、optionsallowed_classes 要素が + クラス名の array でない場合、 + unserializeTypeError と + ValueError をスローします。 + @@ -163,6 +169,15 @@ + + 8.4.0 + + optionsallowed_classes 要素が + クラス名の array でない場合、 + TypeErrorValueError を + スローするようになりました。 + + 8.3.0