diff --git a/appendices/migration85/other-changes.xml b/appendices/migration85/other-changes.xml index 88fb752a4d..79a3c49e49 100644 --- a/appendices/migration85/other-changes.xml +++ b/appendices/migration85/other-changes.xml @@ -1,6 +1,6 @@ - + その他の変更 @@ -440,7 +440,8 @@ 致命的なエラーにバックトレースを含めるかどうかを制御するために、 - fatal_error_backtraces INI ディレクティブが追加されました。 + fatal_error_backtraces + INI ディレクティブが追加されました。 diff --git a/language/enumerations.xml b/language/enumerations.xml index de78774865..4efd3e0fa3 100644 --- a/language/enumerations.xml +++ b/language/enumerations.xml @@ -1,6 +1,6 @@ - + 列挙型(Enum) @@ -46,6 +46,7 @@ name; value; value; value . "\n"; 'Red', Suit::Clubs, Suit::Spades => 'Black', }; @@ -465,6 +474,7 @@ print Suit::Diamonds->shape(); // "Rectangle" と表示 'Red', Suit::Clubs, Suit::Spades => 'Black', }; @@ -518,6 +528,7 @@ enum Suit: string implements Colorful 'Red', Suit::Clubs, Suit::Spades => 'Black', }; @@ -575,6 +586,7 @@ final class Suit implements UnitEnum, Colorful self::Small, $cm < 100 => self::Medium, default => self::Large, @@ -622,6 +634,7 @@ var_dump(Size::fromLength(50)); 'Red', Suit::Clubs, Suit::Spades => 'Black', }; @@ -718,6 +733,7 @@ var_dump($suit->shape()); newInstanceWithoutConstructor( + + unserialize の + allowed_classes オプションは、 + 列挙型(Enum) には影響しません。 + + Pure Enum を JSON にシリアライズしようとすると、 Error がスローされます。 @@ -946,11 +971,14 @@ print serialize(Suit::Hearts); @@ -1007,7 +1037,9 @@ function bar(B $b) { 'Pending', self::Active => 'Active', self::Suspended => 'Suspended', @@ -1152,6 +1189,7 @@ var_dump($status->label()); - + @@ -90,6 +90,8 @@ 仮の戻り値の型が、DateInterval になりました。 これより前のバージョンでは、DateIntervalfalse でした。 + + 8.3.0 無効な文字列が渡された場合、 diff --git a/reference/errorfunc/ini.xml b/reference/errorfunc/ini.xml index b4e6056c7c..b0272368de 100644 --- a/reference/errorfunc/ini.xml +++ b/reference/errorfunc/ini.xml @@ -1,6 +1,6 @@ - +
&reftitle.runtime; @@ -24,6 +24,14 @@ INI_ALL + + fatal_error_backtraces + "1" + INI_ALL + + PHP 8.5.0 以降で有効です。 + + display_errors "1" @@ -201,6 +209,24 @@ + + + + fatal_error_backtraces + bool + + + + 致命的なエラーにバックトレースを含めるかどうかを制御します。 + 致命的なエラーとは、E_ERROR、 + E_CORE_ERRORE_COMPILE_ERROR、 + E_USER_ERROR、 + E_RECOVERABLE_ERROR、および + E_PARSE のことです。 + + + + display_errors diff --git a/reference/filesystem/functions/tempnam.xml b/reference/filesystem/functions/tempnam.xml index c384a9950c..a7f6b8f535 100644 --- a/reference/filesystem/functions/tempnam.xml +++ b/reference/filesystem/functions/tempnam.xml @@ -1,6 +1,6 @@ - + @@ -72,6 +72,14 @@ + + 8.4.0 + + tempnam が作成するファイルの名前は、 + 以前より13バイト長くなりました。 + 総合的な長さは引き続きプラットフォーム依存です。 + + 7.1.0 diff --git a/reference/hash/hashcontext/debuginfo.xml b/reference/hash/hashcontext/debuginfo.xml new file mode 100644 index 0000000000..47e79dde65 --- /dev/null +++ b/reference/hash/hashcontext/debuginfo.xml @@ -0,0 +1,88 @@ + + + + + + HashContext::__debugInfo + ハッシュコンテキストに関するデバッグ情報を返す + + + + &reftitle.description; + + public arrayHashContext::__debugInfo + + + + このメソッドは、直接コールするためのものではありません。 + HashContext のインスタンスを調べる際に、 + var_dump や関連する関数からコールされます。 + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + デバッグ情報の連想配列を返します。 + この配列には algo キーが含まれており、 + そのコンテキストが使用しているハッシュアルゴリズムの名前を保持しています。 + + + + + &reftitle.examples; + + <methodname>HashContext::__debugInfo</methodname> の例 + + +]]> + + &example.outputs; + + + string(6) "sha256" +} +]]> + + + + + + &reftitle.seealso; + + hash_init + var_dump + + + + diff --git a/reference/spl/splfixedarray.xml b/reference/spl/splfixedarray.xml index 2c4fd405ed..214f69043f 100644 --- a/reference/spl/splfixedarray.xml +++ b/reference/spl/splfixedarray.xml @@ -1,6 +1,6 @@ - + SplFixedArray クラス SplFixedArray @@ -68,6 +68,18 @@ + + 8.4.0 + + SplFixedArray での範囲外アクセスは、 + RuntimeException ではなく + OutOfBoundsException + 型の例外をスローするようになりました。 + OutOfBoundsException は + RuntimeException の子クラスであるため、 + これらの例外をキャッチしようとする際の動作に変更はありません。 + + 8.2.0 diff --git a/reference/var/functions/debug-zval-dump.xml b/reference/var/functions/debug-zval-dump.xml index 8d45c3ec74..903a876c8d 100644 --- a/reference/var/functions/debug-zval-dump.xml +++ b/reference/var/functions/debug-zval-dump.xml @@ -1,6 +1,6 @@ - + debug_zval_dump @@ -47,6 +47,29 @@ &return.void; + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + debug_zval_dump は、配列がパックされているかどうかを示すようになりました。 + + + + + + + &reftitle.examples; diff --git a/reference/var/functions/unserialize.xml b/reference/var/functions/unserialize.xml index a7a1e3f95e..41d099b7c4 100644 --- a/reference/var/functions/unserialize.xml +++ b/reference/var/functions/unserialize.xml @@ -1,6 +1,6 @@ - + @@ -104,6 +104,9 @@ このオプションを省略すると、&true; を指定したのと同じ意味になります。 つまり、PHP はあらゆるクラスのオブジェクトをインスタンス化しようとします。 + + このオプションは、列挙型(Enum) には影響しません。 + @@ -178,6 +181,14 @@ スローするようになりました。 + + 8.4.0 + + 大文字の "S" タグを使って文字列をアンシリアライズすることは、 + 推奨されなくなりました。 + 代わりに、小文字の "s" タグを使ってください。 + + 8.3.0