diff --git a/language-snippets.ent b/language-snippets.ent index fcddd4bc12..8b726df577 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1,6 +1,6 @@ - + @@ -812,6 +812,13 @@ DLL ファイルを PHP のフォルダから Windows のシステムディレ '> + + 8.5.0 + + 戻り値の型が、&true; になりました。これより前のバージョンでは、bool でした。 + +'> + diff --git a/reference/intl/idn/idn-to-ascii.xml b/reference/intl/idn/idn-to-ascii.xml index ee0f560a63..95e7ca9e93 100644 --- a/reference/intl/idn/idn-to-ascii.xml +++ b/reference/intl/idn/idn-to-ascii.xml @@ -1,6 +1,6 @@ - + idn_to_ascii @@ -91,6 +91,21 @@ + + 8.4.0 + + domain パラメータが空の場合、 + ValueError をスローするようになりました。 + + + + 8.4.0 + + variant パラメータが + INTL_IDNA_VARIANT_UTS46 でない場合、 + ValueError をスローするようになりました。 + + 7.4.0 diff --git a/reference/intl/idn/idn-to-utf8.xml b/reference/intl/idn/idn-to-utf8.xml index 9c91bd093c..d4a9286bd7 100644 --- a/reference/intl/idn/idn-to-utf8.xml +++ b/reference/intl/idn/idn-to-utf8.xml @@ -1,6 +1,6 @@ - + idn_to_utf8 @@ -91,6 +91,21 @@ + + 8.4.0 + + domain パラメータが空の場合、 + ValueError をスローするようになりました。 + + + + 8.4.0 + + variant パラメータが + INTL_IDNA_VARIANT_UTS46 でない場合、 + ValueError をスローするようになりました。 + + 7.4.0 diff --git a/reference/ldap/constants.xml b/reference/ldap/constants.xml index fe4719908f..4e74829c9f 100644 --- a/reference/ldap/constants.xml +++ b/reference/ldap/constants.xml @@ -1,6 +1,6 @@ - + &reftitle.constants; @@ -381,7 +381,26 @@ LDAP_OPT_X_TLS_PROTOCOL_SSL3, LDAP_OPT_X_TLS_PROTOCOL_TLS1_0, LDAP_OPT_X_TLS_PROTOCOL_TLS1_1, - LDAP_OPT_X_TLS_PROTOCOL_TLS1_2 のうちのいずれかです。 + LDAP_OPT_X_TLS_PROTOCOL_TLS1_2, + LDAP_OPT_X_TLS_PROTOCOL_TLS1_3 のうちのいずれかです。 + + + + + + LDAP_OPT_X_TLS_PROTOCOL_MAX + (int) + + + + プロトコルの最大バージョン。 + LDAP_OPT_X_TLS_PROTOCOL_SSL2, + LDAP_OPT_X_TLS_PROTOCOL_SSL3, + LDAP_OPT_X_TLS_PROTOCOL_TLS1_0, + LDAP_OPT_X_TLS_PROTOCOL_TLS1_1, + LDAP_OPT_X_TLS_PROTOCOL_TLS1_2, + LDAP_OPT_X_TLS_PROTOCOL_TLS1_3 のうちのいずれかです。 + PHP 8.4.0 以降で利用可能です。 @@ -1166,6 +1185,18 @@ + + + LDAP_OPT_X_TLS_PROTOCOL_TLS1_3 + (int) + + + + TLS 1.3 プロトコル。 + PHP 8.4.0 以降で利用可能です。 + + + diff --git a/reference/ldap/functions/ldap-connect.xml b/reference/ldap/functions/ldap-connect.xml index 3c1eae33c5..2fe1efb052 100644 --- a/reference/ldap/functions/ldap-connect.xml +++ b/reference/ldap/functions/ldap-connect.xml @@ -1,6 +1,6 @@ - + @@ -110,6 +110,13 @@ + + 8.4.0 + + ldap_connect を、 + 3 つ以上の引数でコールすることは、推奨されなくなりました。 + + 8.3.0 diff --git a/reference/ldap/functions/ldap-get-option.xml b/reference/ldap/functions/ldap-get-option.xml index 2fcca9fc55..c3fa8cb7d8 100644 --- a/reference/ldap/functions/ldap-get-option.xml +++ b/reference/ldap/functions/ldap-get-option.xml @@ -1,6 +1,6 @@ - + @@ -203,6 +203,11 @@ int 7.1 + + LDAP_OPT_X_TLS_PROTOCOL_MAX + int + 8.4 + LDAP_OPT_X_TLS_RANDOM_FILE string diff --git a/reference/ldap/functions/ldap-set-option.xml b/reference/ldap/functions/ldap-set-option.xml index 893b8daaf9..2217053800 100644 --- a/reference/ldap/functions/ldap-set-option.xml +++ b/reference/ldap/functions/ldap-set-option.xml @@ -1,6 +1,6 @@ - + @@ -183,6 +183,11 @@ int PHP 7.1.0 + + LDAP_OPT_X_TLS_PROTOCOL_MAX + int + PHP 8.4.0 + LDAP_OPT_X_TLS_RANDOM_FILE string diff --git a/reference/mbstring/functions/mb-strcut.xml b/reference/mbstring/functions/mb-strcut.xml index a31f250fd2..2bbe744488 100644 --- a/reference/mbstring/functions/mb-strcut.xml +++ b/reference/mbstring/functions/mb-strcut.xml @@ -1,6 +1,6 @@ - + @@ -108,6 +108,12 @@ + + 8.4.0 + + 不正な UTF-8 および UTF-16 文字列に対する挙動が、より一貫したものになりました。 + + &mbstring.changelog.encoding-nullable; diff --git a/reference/mbstring/functions/mb-substr.xml b/reference/mbstring/functions/mb-substr.xml index 1aba5f20ed..b37e48eb07 100644 --- a/reference/mbstring/functions/mb-substr.xml +++ b/reference/mbstring/functions/mb-substr.xml @@ -1,6 +1,6 @@ - + @@ -93,6 +93,15 @@ + + 8.4.0 + + 不正な文字列(エンコーディングエラーを含むもの)に対しては、 + 他のほとんどの mbstring 関数と同じように文字インデックスが解釈されるようになりました。 + つまり、mb_strpos が返す文字インデックスを + 直接渡せるようになりました。 + + &mbstring.changelog.encoding-nullable; diff --git a/reference/mysqli/functions/mysqli-execute.xml b/reference/mysqli/functions/mysqli-execute.xml index 7568d91134..e3c470700f 100644 --- a/reference/mysqli/functions/mysqli-execute.xml +++ b/reference/mysqli/functions/mysqli-execute.xml @@ -1,6 +1,6 @@ - + @@ -8,6 +8,10 @@ mysqli_stmt_execute &Alias; + + &warn.deprecated.function-8-5-0; + + &reftitle.description; @@ -15,15 +19,6 @@ - - &reftitle.notes; - - - mysqli_execute は非推奨で、廃止予定です。 - - - - &reftitle.seealso; diff --git a/reference/openssl/constants.xml b/reference/openssl/constants.xml index 81abd143c3..25f6d0b9ee 100644 --- a/reference/openssl/constants.xml +++ b/reference/openssl/constants.xml @@ -1,6 +1,6 @@ - + &reftitle.constants; @@ -85,6 +85,30 @@ + + + X509_PURPOSE_OCSP_HELPER + (int) + + + + OCSP レスポンダのヘルパーとして利用できるか証明書を検証します。 + PHP 8.4.0 以降で利用可能です。 + + + + + + X509_PURPOSE_TIMESTAMP_SIGN + (int) + + + + 信頼されたタイムスタンプの署名者として利用できるか証明書を検証します。 + PHP 8.4.0 以降で利用可能です。 + + + @@ -165,8 +189,8 @@ - OPENSSL_KEYTYPE_DH - (int) + OPENSSL_KEYTYPE_DH + (int) diff --git a/reference/pdo/constants.xml b/reference/pdo/constants.xml index d7a11b0c45..a35345336e 100644 --- a/reference/pdo/constants.xml +++ b/reference/pdo/constants.xml @@ -1,6 +1,6 @@ - + &reftitle.constants; @@ -230,13 +230,17 @@ PDO::ATTR_AUTOCOMMIT - (int) + (bool) この値が &false; の場合、PDO は接続がトランザクションを開始できるように オートコミットを無効にしようとします。 + + PHP 8.4.0 以降、この定数は bool として型付けされています。 + それ以前は、int として型付けされていました。 + @@ -495,11 +499,19 @@ PDO::ATTR_EMULATE_PREPARES - (int) + (bool) - + プリペアドステートメントのエミュレーションを有効にするか無効にするかを指定します。 + ドライバの中には、ネイティブのプリペアドステートメントをサポートしていないものや、 + 限定的にしかサポートしていないものがあります。&true; が設定された場合、 + PDO は常にプリペアドステートメントをエミュレートします。&false; が設定された場合、 + ドライバのネイティブなプリペアドステートメントを使用します。 + + + PHP 8.4.0 以降、この定数は bool として型付けされています。 + それ以前は、int として型付けされていました。 diff --git a/reference/pdo_dblib/pdo-dblib.xml b/reference/pdo_dblib/pdo-dblib.xml index 513210cf2e..44bf5fd6a1 100644 --- a/reference/pdo_dblib/pdo-dblib.xml +++ b/reference/pdo_dblib/pdo-dblib.xml @@ -1,6 +1,6 @@ - + Pdo\Dblib クラス @@ -54,7 +54,7 @@ public const - int + bool Pdo\Dblib::ATTR_STRINGIFY_UNIQUEIDENTIFIER @@ -78,7 +78,7 @@ public const - int + bool Pdo\Dblib::ATTR_DATETIME_CONVERT @@ -116,6 +116,8 @@ Pdo\Dblib::ATTR_STRINGIFY_UNIQUEIDENTIFIER + PHP 8.4.0 以降、この定数は bool として型付けされています。 + それ以前は、int として型付けされていました。 @@ -152,6 +154,10 @@ フォーマットあるいはロケールのフォーマットを使って文字列に変換します。 デフォルトでは、この属性は &false; です。 + + PHP 8.4.0 以降、この定数は bool として型付けされています。 + それ以前は、int として型付けされていました。 + diff --git a/reference/pdo_mysql/constants.xml b/reference/pdo_mysql/constants.xml index 47e2a8b6ad..579db8b0e7 100644 --- a/reference/pdo_mysql/constants.xml +++ b/reference/pdo_mysql/constants.xml @@ -1,6 +1,6 @@ - +
&reftitle.constants; @@ -87,12 +87,16 @@ PDO::MYSQL_ATTR_DIRECT_QUERY - (int) + (bool) PDO::ATTR_EMULATE_PREPARES &Alias; + + PHP 8.4.0 以降、この定数は bool として型付けされています。 + それ以前は、int として型付けされていました。 + diff --git a/reference/phar/Phar/setStub.xml b/reference/phar/Phar/setStub.xml index aeffca52a3..af40ad280b 100644 --- a/reference/phar/Phar/setStub.xml +++ b/reference/phar/Phar/setStub.xml @@ -1,6 +1,6 @@ - + @@ -16,7 +16,6 @@ &phar.write; - このメソッドを使用して、新しい Phar アーカイブに PHP 起動ローダスタブを追加します。あるいは、既存の @@ -25,14 +24,20 @@ Phar アーカイブのローダスタブは、 このようにアーカイブを直接インクルードした際に使用されます。 - - - + - ]]> - + ]]> + + あるいは、単にこのように実行した際にも使用されます。 + + + + phar ストリームラッパーを使用して次のようにファイルをインクルードした際には、 ローダにはアクセスしません。 @@ -63,9 +68,16 @@ include 'phar://myphar.phar/somefile.php'; length - - - + + stub の長さ(バイト単位)。 + + + + 第一引数に &resource; を指定して length 引数を渡すことは、 + PHP 8.3.0 以降では非推奨です。 + かわりに $phar->setStub(stream_get_contents($resource)) を使ってください。 + + @@ -127,12 +139,14 @@ include 'phar://myphar.phar/somefile.php'; setStub(''); include 'phar://brandnewphar.phar/a.php'; var_dump($p->getStub()); + $p['b.php'] = 'setStub(''); include 'phar://brandnewphar.phar/b.php'; diff --git a/reference/phar/PharData/setStub.xml b/reference/phar/PharData/setStub.xml index ac925ccfa1..cbfb9314bf 100644 --- a/reference/phar/PharData/setStub.xml +++ b/reference/phar/PharData/setStub.xml @@ -1,6 +1,6 @@ - + @@ -11,7 +11,7 @@ &reftitle.description; public truePharData::setStub - stringstub + resourcestringstub intlength-1 @@ -29,19 +29,19 @@ stub - - 文字列あるいはオープンしたストリームハンドル。 + + 形式上は、文字列あるいはオープンしたストリームハンドル。 この phar アーカイブの実行スタブとして使用します。 このパラメータは無視されます。 - + length - - - + + stub のバイト数。このパラメータは無視されます。 + diff --git a/reference/readline/functions/readline-add-history.xml b/reference/readline/functions/readline-add-history.xml index 87ffbbafe5..1aacfee0cb 100644 --- a/reference/readline/functions/readline-add-history.xml +++ b/reference/readline/functions/readline-add-history.xml @@ -1,6 +1,6 @@ - + @@ -39,6 +39,24 @@ &return.true.always; + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &return.type.true.85; + + + + + - + readline_callback_handler_install @@ -62,6 +62,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &return.type.true.85; + + + + + &reftitle.examples; diff --git a/reference/readline/functions/readline-clear-history.xml b/reference/readline/functions/readline-clear-history.xml index fb93730ecb..ccad609c20 100644 --- a/reference/readline/functions/readline-clear-history.xml +++ b/reference/readline/functions/readline-clear-history.xml @@ -1,6 +1,6 @@ - + @@ -30,6 +30,24 @@ &return.true.always; + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &return.type.true.85; + + + + + - + &reftitle.constants; @@ -17,6 +17,11 @@ セッション ID がセッションクッキーに適切にセットされている場合には空文字列が入る。 これは session_id が返す ID と同一になる。 + + + この定数は PHP 8.4.0 で非推奨となりました。 + + diff --git a/reference/session/functions/session-set-save-handler.xml b/reference/session/functions/session-set-save-handler.xml index 76207ec7ab..d25993b609 100644 --- a/reference/session/functions/session-set-save-handler.xml +++ b/reference/session/functions/session-set-save-handler.xml @@ -1,6 +1,6 @@ - + @@ -280,6 +280,30 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + session_set_save_handler を + 2 つを超える引数で呼び出すことは、非推奨となりました。 + 代わりに 2 引数のシグネチャを使用してください。 + + + + + + + &reftitle.examples; diff --git a/reference/soap/constants.xml b/reference/soap/constants.xml index 34872bcb7a..f12899745e 100644 --- a/reference/soap/constants.xml +++ b/reference/soap/constants.xml @@ -1,6 +1,6 @@ - + &reftitle.constants; @@ -64,7 +64,9 @@ (int) 999 - + + PHP 8.4.0 で非推奨となりました。 +