From 161ff2079d6554a4637c5f9d090df7bdc37c9faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sun, 14 Jun 2026 11:24:03 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E6=97=A2=E8=A8=B3=E3=81=AE=E8=AA=A4?= =?UTF-8?q?=E3=82=8A=E3=82=92=E4=BF=AE=E6=AD=A3=EF=BC=88=E8=AA=A4=E8=A8=B3?= =?UTF-8?q?=E3=83=BB=E8=A8=B3=E6=8A=9C=E3=81=91=E3=83=BB=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=82=AF=E3=82=A2=E3=83=83=E3=83=97=E3=83=BB=E7=94=A8=E8=AA=9E?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原文と意味が食い違う誤訳・訳抜け・マークアップの欠落・用語の誤りを、原文に合わせて修正する。 --- appendices/migration74/other-changes.xml | 4 ++-- language/predefined/iteratoraggregate.xml | 2 +- language/predefined/serializable.xml | 2 +- language/types/boolean.xml | 6 +++--- language/types/type-juggling.xml | 8 ++++---- language/types/void.xml | 2 +- language/variables.xml | 2 +- .../datetime/dateinterval/createfromdatestring.xml | 6 +++--- reference/datetime/datetimeimmutable/add.xml | 2 +- reference/datetime/datetimeimmutable/modify.xml | 2 +- reference/datetime/datetimeimmutable/sub.xml | 2 +- reference/errorfunc/functions/debug-backtrace.xml | 4 ++-- reference/exec/functions/proc-open.xml | 8 ++++---- reference/filesystem/functions/tempnam.xml | 12 ++++++------ .../functions/register-shutdown-function.xml | 4 ++-- reference/intl/dateformatter/parse.xml | 2 +- .../reflection/reflectionfunction/construct.xml | 4 ++-- .../sockets/functions/socket-addrinfo-lookup.xml | 4 ++-- reference/sockets/functions/socket-bind.xml | 4 ++-- reference/var/functions/unserialize.xml | 10 +++++----- 20 files changed, 45 insertions(+), 45 deletions(-) diff --git a/appendices/migration74/other-changes.xml b/appendices/migration74/other-changes.xml index 9ba1773eac..1682e37c89 100644 --- a/appendices/migration74/other-changes.xml +++ b/appendices/migration74/other-changes.xml @@ -21,8 +21,8 @@ 正規表現 (Perl互換) - UTF-8モード("u" 修飾子) - が同じ文字列に対して繰り返し呼ばれた(但し異なるオフセットで呼ばれる)場合、UTF-8 + preg_match が UTF-8モード("u" 修飾子) + で同じ文字列に対して繰り返し呼ばれた(但し異なるオフセットで呼ばれる)場合、UTF-8 として正しいかどうかの確認は一度だけ行われるようになります。 diff --git a/language/predefined/iteratoraggregate.xml b/language/predefined/iteratoraggregate.xml index d773bb557a..de998e840b 100644 --- a/language/predefined/iteratoraggregate.xml +++ b/language/predefined/iteratoraggregate.xml @@ -43,7 +43,7 @@
&reftitle.examples; - 基本的な例 + 基本的な使用法 diff --git a/language/types/boolean.xml b/language/types/boolean.xml index 46f8bd2552..b7256e6e2c 100644 --- a/language/types/boolean.xml +++ b/language/types/boolean.xml @@ -45,7 +45,7 @@ var_dump($foo); // bool(true) $action = "show_version"; $show_separators = true; -// == は、boolean型を返す演算子 +// == は、等価性をテストして boolean型を返す演算子 if ($action == "show_version") { echo "バージョンは1.23です。"; } @@ -55,7 +55,7 @@ if ($show_separators == TRUE) { echo "
\n"; } -// 上の例は次のように簡単に書くことができます。 +// 上の例は次のように書いても全く同じ意味です。 if ($show_separators) { echo "
\n"; } @@ -115,7 +115,7 @@ if ($show_separators) { - unit 型 NULL + ユニット型 NULL (値がセットされていない変数を含む) diff --git a/language/types/type-juggling.xml b/language/types/type-juggling.xml index 8015495836..8d19c43cb2 100644 --- a/language/types/type-juggling.xml +++ b/language/types/type-juggling.xml @@ -65,8 +65,8 @@ このコンテクストでは、 オペランドのどちらかが float - (または整数と解釈できない場合) の場合か、 - 両方のオペランドが float の場合、 + (または整数と解釈できない場合) の場合、 + 両方のオペランドが float として解釈され、 結果の型は float になります。 そうでない場合、オペランドは整数として解釈され、 結果の型も整数になります。 @@ -163,10 +163,10 @@ 宣言されている型が float の場合、 整数が浮動小数点に変換されることです。 ふたつめは型が スカラー型、 - または値がスカラー型に変換可能な場合で、 + 値がスカラー型に変換可能な場合で、 かつ型の自動変換モードが有効な場合(デフォルト)、 - スカラー型の値だけが別の変換可能なスカラー型に変換される可能性があることです。 + スカラー型の値が別の変換可能なスカラー型に変換される可能性があることです。 この振る舞いに関する詳細は、以下を参照ください: diff --git a/language/types/void.xml b/language/types/void.xml index 014069a7ec..ec7f0177a9 100644 --- a/language/types/void.xml +++ b/language/types/void.xml @@ -6,7 +6,7 @@ void は、関数が値を返さないことを示す、 - 戻り値のみで指定できる型ですが、関数を終了させても構いません。 + 戻り値のみで指定できる型ですが、関数自体が終了することはあります。 よって、この型は union 型 の一部として指定することが出来ません。 PHP 7.1.0 以降で利用できます。 diff --git a/language/variables.xml b/language/variables.xml index 2b45ff7519..a496b49a63 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -17,7 +17,7 @@ 変数名は、文字 (A-Z, a-z, - 128から255 までのバイト) で始まり、 + 128から255 までのバイト) かアンダースコアで始まり、 任意の数の文字、 数字、アンダースコアが続きます。正規表現を使うと、これは次の ように表現することができます。 diff --git a/reference/datetime/dateinterval/createfromdatestring.xml b/reference/datetime/dateinterval/createfromdatestring.xml index 90d8f2b2ee..b573516bb0 100644 --- a/reference/datetime/dateinterval/createfromdatestring.xml +++ b/reference/datetime/dateinterval/createfromdatestring.xml @@ -6,7 +6,7 @@ DateInterval::createFromDateString - 相対指定文字列から DateInterval を作成する + 文字列の相対部分から DateInterval を作成する @@ -23,7 +23,7 @@ DateTimeImmutable - のコンストラクタで使われている日付パーサーを用いて、パースされた相対指定文字列から + のコンストラクタで使われている日付/時刻パーサーを用いて、パースされた文字列の相対部分から DateInterval を作成します。 @@ -154,7 +154,7 @@ $i = DateInterval::createFromDateString('3600 seconds'); - パース処理の組み合わせと、負の間隔 + 間隔の組み合わせと、負の間隔のパース format('Y-m-d') . "\n"; - <function>DateTimeImmutable::add</function> の高度な例 + <function>DateTimeImmutable::add</function> のその他の例 &reftitle.errors; - 不正な日付/時刻の文字列が渡された場合、 + 無効な日付/時刻の文字列が渡された場合、 DateMalformedStringException がスローされます。 PHP 8.3.0 より前のバージョンでは、警告が発生していました。 diff --git a/reference/datetime/datetimeimmutable/sub.xml b/reference/datetime/datetimeimmutable/sub.xml index dd12eb7909..6210628966 100644 --- a/reference/datetime/datetimeimmutable/sub.xml +++ b/reference/datetime/datetimeimmutable/sub.xml @@ -103,7 +103,7 @@ echo $newDate->format('Y-m-d') . "\n"; - <function>DateTimeImmutable::sub</function> の別な例 + <function>DateTimeImmutable::sub</function> のその他の例 debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT|DEBUG_BACKTRACE_IGNORE_ARGS) - インデックス "object" を収集し、"args" を省略します。 + インデックス "object" を収集し、かつ "args" を省略します。 @@ -113,7 +113,7 @@ &reftitle.returnvalues; - 連想配列の配列を返します。連想配列の要素として返される可能性があるものは以下のとおりです。 + 連想配列(array)の配列を返します。連想配列の要素として返される可能性があるものは以下のとおりです。 diff --git a/reference/exec/functions/proc-open.xml b/reference/exec/functions/proc-open.xml index 35b2746084..710b59992e 100644 --- a/reference/exec/functions/proc-open.xml +++ b/reference/exec/functions/proc-open.xml @@ -50,7 +50,7 @@ 実行するコマンドラインを &string; として渡します。 - 特殊な文字は適切にエスケープされ、適切にクォートされます。 + 特殊な文字は適切にエスケープし、適切にクォートしなければなりません。 @@ -171,7 +171,7 @@ blocking_pipes (windows のみ): - &true; に設定すると、パイプを強制的に切断します。 + &true; に設定すると、パイプを強制的にブロッキングモードにします。 create_process_group (Windows のみ): @@ -195,7 +195,7 @@ &reftitle.returnvalues; プロセスを表すリソースを返します。このリソースは、使用し終えた際に - proc_close を使用して開放する必要があります。 + proc_close を使用して解放する必要があります。 失敗した場合は &false; を返します。 @@ -270,7 +270,7 @@ $descriptorspec = array( 0 => array("pipe", "r"), // stdin は、子プロセスが読み込むパイプです。 1 => array("pipe", "w"), // stdout は、子プロセスが書き込むパイプです。 - 2 => array("file", "/tmp/error-output.txt", "a") // はファイルで、そこに書き込みます。 + 2 => array("file", "/tmp/error-output.txt", "a") // stderr はファイルで、そこに書き込みます。 ); $cwd = '/tmp'; diff --git a/reference/filesystem/functions/tempnam.xml b/reference/filesystem/functions/tempnam.xml index a7f6b8f535..0a40fe2b30 100644 --- a/reference/filesystem/functions/tempnam.xml +++ b/reference/filesystem/functions/tempnam.xml @@ -5,7 +5,7 @@ tempnam - 一意なファイル名を生成する + 一意なファイル名を持つファイルを作成する @@ -16,11 +16,11 @@ stringprefix - 一意なテンポラリファイル名を、パーミッションを 0600 に設定し、 + 一意なファイル名を持つファイルを、パーミッションを 0600 に設定し、 指定したディレクトリに作成します。 指定したディレクトリが存在しない場合やディレクトリに書き込めない場合は、tempnam - はシステムのテンポラリディレクトリにあるファイル名を生成し、 - そのファイルへのフルパスを (名前を含めて) 返します。 + はシステムのテンポラリディレクトリにファイルを生成し、 + そのファイルへのフルパスを (名前を含めて) 返すことがあります。 @@ -85,7 +85,7 @@ tempnam は、 システムのテンポラリディレクトリにフォールバックした場合に - 警告を生成するようになりました。 + notice を発行するようになりました。 @@ -123,7 +123,7 @@ unlink($tmpfname); PHP が指定されたパラメータ directory にファイルを生成することができない場合、 - システム標準のフォールバックが実行されます。 + システムのデフォルトにフォールバックします。 NTFS では、指定した directory に 65534 を超える数のファイルが存在する場合にも同じことが起こります。 diff --git a/reference/funchand/functions/register-shutdown-function.xml b/reference/funchand/functions/register-shutdown-function.xml index e52fbfd2e3..bb79ff6fc1 100644 --- a/reference/funchand/functions/register-shutdown-function.xml +++ b/reference/funchand/functions/register-shutdown-function.xml @@ -106,8 +106,8 @@ register_shutdown_function('shutdown'); &reftitle.notes; - Apache などいくつかの Web サーバーでは、スクリプトの実行時ディレクトリを - シャットダウン関数内で変更可能です。 + Apache などいくつかの Web サーバーでは、スクリプトの作業ディレクトリが + シャットダウン関数内で変わることがあります。 diff --git a/reference/intl/dateformatter/parse.xml b/reference/intl/dateformatter/parse.xml index 141de8e272..12acb5a168 100644 --- a/reference/intl/dateformatter/parse.xml +++ b/reference/intl/dateformatter/parse.xml @@ -57,7 +57,7 @@ string のパースを開始する位置 (ゼロから数えます)。 - string を処理する前にエラーが発生していない場合は + string をすべて消費するまでにエラーが発生しなかった場合は offset は -1 となります。それ以外の場合はパースが終了した位置となります (そしてエラーが発生します)。 この変数には、パースが失敗した場合にその終了位置が含まれます。 diff --git a/reference/reflection/reflectionfunction/construct.xml b/reference/reflection/reflectionfunction/construct.xml index 5226808fef..2d7997ce4a 100644 --- a/reference/reflection/reflectionfunction/construct.xml +++ b/reference/reflection/reflectionfunction/construct.xml @@ -28,7 +28,7 @@ function - 調べたい関数あるいはクロージャの名前。 + 調べたい関数の名前、あるいはクロージャ。 @@ -39,7 +39,7 @@ &reftitle.errors; - function パラメータが正しい関数名でない場合に + function パラメータが正しい関数でない場合に ReflectionException がスローされます。 diff --git a/reference/sockets/functions/socket-addrinfo-lookup.xml b/reference/sockets/functions/socket-addrinfo-lookup.xml index 68acad2a74..2802f573ea 100644 --- a/reference/sockets/functions/socket-addrinfo-lookup.xml +++ b/reference/sockets/functions/socket-addrinfo-lookup.xml @@ -40,8 +40,8 @@ 接続するサービス。service が数値形式の文字列の場合、 - ポート番号に翻訳されます。 - それ以外の場合、ネットワークサービス名に翻訳されます。 + ポート番号を指します。 + それ以外の場合、ネットワークサービス名を指します。 これは、オペレーティングシステムによってポート番号にマップされます。 diff --git a/reference/sockets/functions/socket-bind.xml b/reference/sockets/functions/socket-bind.xml index 0ef2fd9887..30ef93d220 100644 --- a/reference/sockets/functions/socket-bind.xml +++ b/reference/sockets/functions/socket-bind.xml @@ -47,7 +47,7 @@ ソケットの種類が AF_UNIX の場合、 - address は Unix ドメインソケット + address は Unix ドメインソケットのパス (例: /tmp/my.sock)。 @@ -58,7 +58,7 @@ パラメータ portAF_INET ソケットにバインドする場合にのみ使用され、 - 接続するリモートホストのポートを指定します。 + 接続を待ち受けるポートを指定します。 diff --git a/reference/var/functions/unserialize.xml b/reference/var/functions/unserialize.xml index eec02cd61f..74fa87dd20 100644 --- a/reference/var/functions/unserialize.xml +++ b/reference/var/functions/unserialize.xml @@ -142,7 +142,7 @@ 渡された文字列が復元できなかった場合、&false; を返して - E_WARNING を発生します。 + E_WARNING が発生します。 @@ -150,7 +150,7 @@ &reftitle.errors; オブジェクトは、 - アンシリアライズを実行するハンドラで Throwable をスローしても構いません。 + アンシリアライズを実行するハンドラで Throwable をスローする可能性があります。 PHP 8.4.0 以降では、optionsallowed_classes 要素が @@ -247,7 +247,7 @@ if (!odbc_execute($stmt, $sqldata) || !odbc_fetch_into($stmt, $tmp)) { // 実行または取得が失敗した場合、空の配列で初期化します $session_data = array(); } else { - // tmp[0] にシリアル化されたデータを保持している必要があります。 + // $tmp[0] にシリアル化されたデータを保持しているはずです。 $session_data = unserialize($tmp[0]); if (!is_array($session_data)) { // 何か問題があったため、空の配列で初期化します。 @@ -288,10 +288,10 @@ unserialize($serialized_object); &reftitle.notes; - エラーやシリアライズされた &false; 値をアンシリアライズする場合、 + エラーが発生した場合や、シリアライズされた &false; 値をアンシリアライズする場合、 &false; が返されます。この特殊なケースは dataserialize(false) - で比較する、もしくは E_WARNING + と比較する、もしくは E_WARNING をキャッチすることで区別することができます。 From df62277345ca700aeb6b903d2431cc3109a3b07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sun, 14 Jun 2026 15:39:27 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E3=80=8C=E3=83=A6=E3=83=8B=E3=83=83?= =?UTF-8?q?=E3=83=88=E5=9E=8B=E3=80=8D=E3=81=AE=E8=A1=A8=E8=A8=98=E3=82=92?= =?UTF-8?q?=E7=B5=B1=E4=B8=80=EF=BC=88unit=20=E5=9E=8B=20/=20Unit=20?= =?UTF-8?q?=E5=9E=8B=20=E2=86=92=20=E3=83=A6=E3=83=8B=E3=83=83=E3=83=88?= =?UTF-8?q?=E5=9E=8B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 型カテゴリを表す用語は doc-ja では「スカラー型」「ボトム型」「トップ型」のように カタカナで表記している。boolean.xml を「ユニット型」に修正したのに合わせ、同じ 概念を扱う null.xml と type-system.xml の「unit 型」「Unit 型」も統一する。 --- language/types/null.xml | 2 +- language/types/type-system.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/language/types/null.xml b/language/types/null.xml index dab30fe7aa..98949324df 100644 --- a/language/types/null.xml +++ b/language/types/null.xml @@ -5,7 +5,7 @@ NULL - null 型は、PHP の unit 型 (意味のある情報を持たないことを示す型) です。 + null 型は、PHP のユニット型(意味のある情報を持たないことを示す型) です。 つまり、単一の値 &null; しか持ちません。 diff --git a/language/types/type-system.xml b/language/types/type-system.xml index 4858a05c8a..587c108376 100644 --- a/language/types/type-system.xml +++ b/language/types/type-system.xml @@ -86,7 +86,7 @@ - Unit 型 + ユニット型 From 1ae90afde9cff10efba137f4e9acefc40ce7cf15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sun, 14 Jun 2026 17:07:48 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=80=8Cstring=20=E3=82=92=E6=B6=88?= =?UTF-8?q?=E8=B2=BB=E3=81=99=E3=82=8B=E3=81=BE=E3=81=A7=E3=81=AB=E3=80=8D?= =?UTF-8?q?=E3=82=92=E3=80=8C=E6=9C=80=E5=BE=8C=E3=81=BE=E3=81=A7=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=81=97=E3=81=A6=E3=82=82=E3=80=8D=E3=81=AB=E7=B5=B1?= =?UTF-8?q?=E4=B8=80=EF=BC=88intl=20DateFormatter=20parse=E7=B3=BB?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IntlDateFormatter の parse / parseToCalendar / localtime は同一の offset 説明文を持つ。 localtime は「処理する前に」と原文 "before ... is consumed" の意味を反転していた 誤りを修正し、parse / parseToCalendar の「すべて消費するまでに」と合わせて 「最後まで処理しても」に統一する。 --- reference/intl/dateformatter/localtime.xml | 2 +- reference/intl/dateformatter/parse.xml | 2 +- reference/intl/dateformatter/parsetocalendar.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/intl/dateformatter/localtime.xml b/reference/intl/dateformatter/localtime.xml index 15657ce6ce..2c2319f78e 100644 --- a/reference/intl/dateformatter/localtime.xml +++ b/reference/intl/dateformatter/localtime.xml @@ -57,7 +57,7 @@ $value のパースを開始する位置 (ゼロから数えます)。 - $value を処理する前にエラーが発生していない場合は + $value を最後まで処理してもエラーが発生しなかった場合は $parse_pos は -1 となります。それ以外の場合はパースが終了した位置となります (そしてエラーが発生します)。 この変数には、パースが失敗した場合にその終了位置が含まれます。 diff --git a/reference/intl/dateformatter/parse.xml b/reference/intl/dateformatter/parse.xml index 12acb5a168..e972a3c12d 100644 --- a/reference/intl/dateformatter/parse.xml +++ b/reference/intl/dateformatter/parse.xml @@ -57,7 +57,7 @@ string のパースを開始する位置 (ゼロから数えます)。 - string をすべて消費するまでにエラーが発生しなかった場合は + string を最後まで処理してもエラーが発生しなかった場合は offset は -1 となります。それ以外の場合はパースが終了した位置となります (そしてエラーが発生します)。 この変数には、パースが失敗した場合にその終了位置が含まれます。 diff --git a/reference/intl/dateformatter/parsetocalendar.xml b/reference/intl/dateformatter/parsetocalendar.xml index cb3732e037..fab0361bce 100644 --- a/reference/intl/dateformatter/parsetocalendar.xml +++ b/reference/intl/dateformatter/parsetocalendar.xml @@ -40,7 +40,7 @@ string のパースを開始する位置 (ゼロから数えます)。 - string をすべて消費するまでにエラーが発生しなかった場合、 + string を最後まで処理してもエラーが発生しなかった場合、 offset は -1 となります。それ以外の場合は、 パースが終了した (そしてエラーが発生した) 位置となります。 パースが失敗した場合、この変数にはその終了位置が格納されます。