From 7b35ddc460e60f5e8e8c2aed70dd43f9384dcec4 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: Sat, 1 Aug 2026 20:22:05 +0900 Subject: [PATCH 1/2] =?UTF-8?q?doc-en=20=E3=81=A8=E5=90=8C=E6=9C=9F?= =?UTF-8?q?=E3=81=97=20strings=20=E9=96=A2=E6=95=B0=E3=81=AE=E6=96=87?= =?UTF-8?q?=E6=B3=95=E4=BF=AE=E6=AD=A3=E3=81=A8=20=20=E5=8C=96?= =?UTF-8?q?=E3=82=92=E5=8F=8D=E6=98=A0=EF=BC=8810=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit php/doc-en#5726 への追従。大半は のミラーで、訳文は変更していない。 原文の記述が変わったのは 2 件: - strpbrk.xml — 原文の "for a characters"(characters そのものを探す)が誤りで、 "for any of the characters in characters" に修正された。既訳も同じ誤りを 引き継いでいたので追従した - strncasecmp.xml — コード例の出力文字列の文法修正(are equals → are equal) get-html-translation-table.xml は原文の " のセミコロン欠落修正にも追従した。 php/doc-en#5726 は 11 ファイルを変更しているが、ltrim.xml は #424 で取り込み済み。 --- reference/strings/functions/crypt.xml | 6 +++--- .../strings/functions/get-html-translation-table.xml | 8 ++++---- reference/strings/functions/localeconv.xml | 6 +++--- reference/strings/functions/quoted-printable-decode.xml | 6 +++--- reference/strings/functions/setlocale.xml | 6 +++--- reference/strings/functions/str-repeat.xml | 6 +++--- reference/strings/functions/stripos.xml | 6 +++--- reference/strings/functions/strncasecmp.xml | 4 ++-- reference/strings/functions/strpbrk.xml | 8 ++++---- reference/strings/functions/strripos.xml | 6 +++--- 10 files changed, 31 insertions(+), 31 deletions(-) diff --git a/reference/strings/functions/crypt.xml b/reference/strings/functions/crypt.xml index 64dd28209ff..2335048b389 100644 --- a/reference/strings/functions/crypt.xml +++ b/reference/strings/functions/crypt.xml @@ -1,6 +1,6 @@ - + @@ -41,13 +41,13 @@ password_hashcrypt のシンプルなラッパーであり、既存のパスワードハッシュと互換性があります。 password_hash を使うことを推奨します。 - + ハッシュ方式は、salt 引数によって決まります。 salt を省略した場合は、標準の 2 文字 (DES) の salt を自動生成します。 あるいは、MD5 crypt() が使えれば 12 文字 (MD5) の salt を自動生成します。 PHP の定数 CRYPT_SALT_LENGTH には、 ハッシュで使用できる salt の最大長が格納されています。 - + 標準の DES ベースの場合、crypt は出力の最初の 2 文字を salt として使用します。また、 diff --git a/reference/strings/functions/get-html-translation-table.xml b/reference/strings/functions/get-html-translation-table.xml index 3868cb92510..8345463b3b4 100644 --- a/reference/strings/functions/get-html-translation-table.xml +++ b/reference/strings/functions/get-html-translation-table.xml @@ -1,6 +1,6 @@ - + @@ -23,15 +23,15 @@ において内部的に使用される変換テーブルを返します。 - + 特殊文字はいくつかの方法でエンコードすることができます。 例えば、"", - " もしくは &#x22 + " もしくは " としてエンコードすることができます。 get_html_translation_table の返す値は、 htmlspecialcharshtmlentities で使っている形式だけです。 - + diff --git a/reference/strings/functions/localeconv.xml b/reference/strings/functions/localeconv.xml index 225c616a337..302943cec6b 100644 --- a/reference/strings/functions/localeconv.xml +++ b/reference/strings/functions/localeconv.xml @@ -1,6 +1,6 @@ - + @@ -141,11 +141,11 @@ - + p_sign_posnn_sign_posn は、フォーマッタオプションの文字列を含みます。それぞれの数字は 上に一覧されている条件の 1 つを表します。 - + groupingフィールドには、グループ化する方法を表す数字を定義する配 列が含まれます。例えば、nl_NL ロケール用の通貨 groupingフィールド diff --git a/reference/strings/functions/quoted-printable-decode.xml b/reference/strings/functions/quoted-printable-decode.xml index 23acfc48406..cd95574a366 100644 --- a/reference/strings/functions/quoted-printable-decode.xml +++ b/reference/strings/functions/quoted-printable-decode.xml @@ -1,6 +1,6 @@ - + @@ -14,13 +14,13 @@ stringquoted_printable_decode stringstring - + この関数は、quoted printable 文字列をデコードし、 8 ビットバイナリ文字列を返します (RFC2821 の section 4.5.2 ではなく RFC2045 の section 6.7 によれば、付随するピリオドは行の開始から削除されません) 。 - + この関数は imap_qprint に似ていますが、 動作に IMAP モジュールを必要としないという違いがあります。 diff --git a/reference/strings/functions/setlocale.xml b/reference/strings/functions/setlocale.xml index cce8fea1d71..0579a7f6531 100644 --- a/reference/strings/functions/setlocale.xml +++ b/reference/strings/functions/setlocale.xml @@ -1,6 +1,6 @@ - + @@ -26,7 +26,7 @@ ロケール情報を設定します。 - + ロケール情報は、スレッド毎ではなくプロセス毎に維持されます。 もし PHP を マルチスレッドサーバーAPI 上で動作させている場合、 スクリプトを実行している間にロケールの設定が突然変わるのを @@ -37,7 +37,7 @@ を使用してプロセスワイドなロケールを変更する事により発生します。 Windows では、PHP 7.0.5 以降、 ロケール情報はスレッド単位で維持されるようになっています。 - + diff --git a/reference/strings/functions/str-repeat.xml b/reference/strings/functions/str-repeat.xml index 68e72eb6551..36ed6fb1c3d 100644 --- a/reference/strings/functions/str-repeat.xml +++ b/reference/strings/functions/str-repeat.xml @@ -1,6 +1,6 @@ - + @@ -36,9 +36,9 @@ times - + string を繰り返す回数。 - + times は 0 以上でなければなりません。 times が diff --git a/reference/strings/functions/stripos.xml b/reference/strings/functions/stripos.xml index 533cc8e4c58..ed5b0ab40a9 100644 --- a/reference/strings/functions/stripos.xml +++ b/reference/strings/functions/stripos.xml @@ -1,6 +1,6 @@ - + @@ -20,10 +20,10 @@ 文字列 haystack の中で needle が最初に現れる位置を探します。 - + strpos と異なり、stripos は大文字小文字を区別しません。 - + diff --git a/reference/strings/functions/strncasecmp.xml b/reference/strings/functions/strncasecmp.xml index 54f9e86c53e..56795e6406f 100644 --- a/reference/strings/functions/strncasecmp.xml +++ b/reference/strings/functions/strncasecmp.xml @@ -1,6 +1,6 @@ - + @@ -90,7 +90,7 @@ $var1 = 'Hello John'; $var2 = 'hello Doe'; if (strncasecmp($var1, $var2, 5) === 0) { - echo 'First 5 characters of $var1 and $var2 are equals in a case-insensitive string comparison'; + echo 'First 5 characters of $var1 and $var2 are equal in a case-insensitive string comparison'; } ?> ]]> diff --git a/reference/strings/functions/strpbrk.xml b/reference/strings/functions/strpbrk.xml index 865c1c2e9c2..3db37b27423 100644 --- a/reference/strings/functions/strpbrk.xml +++ b/reference/strings/functions/strpbrk.xml @@ -1,6 +1,6 @@ - + @@ -15,10 +15,10 @@ stringstring stringcharacters - + strpbrk は、文字列 string - から characters を探します。 - + から characters に含まれる文字のいずれかを探します。 + diff --git a/reference/strings/functions/strripos.xml b/reference/strings/functions/strripos.xml index 5f8f48e19e8..d080d25a027 100644 --- a/reference/strings/functions/strripos.xml +++ b/reference/strings/functions/strripos.xml @@ -1,6 +1,6 @@ - + @@ -20,10 +20,10 @@ 文字列 haystack の中で、 needle が最後に現れる位置を探します。 - + strrpos と異なり、strripos は大文字小文字を区別しません。 - + From 9889cb4672975c45dd49b56244b8eef7f43d99dc 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: Sat, 1 Aug 2026 20:22:13 +0900 Subject: [PATCH 2/2] =?UTF-8?q?doc-en=20=E3=81=A8=E5=90=8C=E6=9C=9F?= =?UTF-8?q?=E3=81=97=20opcache=5Finvalidate()=20=E3=81=8C=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=AD=E3=83=A3=E3=83=83=E3=82=B7?= =?UTF-8?q?=E3=83=A5=E3=82=82=E7=84=A1=E5=8A=B9=E5=8C=96=E3=81=99=E3=82=8B?= =?UTF-8?q?=E6=97=A8=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit php/doc-en#5723 への追従。 「インメモリキャッシュのみを無効化し、ファイルキャッシュは無効化しない」という 記述が誤りで、opcache.file_cache が有効なら対応するファイルキャッシュの エントリも無効化される、に修正された。 --- reference/opcache/functions/opcache-invalidate.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reference/opcache/functions/opcache-invalidate.xml b/reference/opcache/functions/opcache-invalidate.xml index eda1169e6da..3a01dfade39 100644 --- a/reference/opcache/functions/opcache-invalidate.xml +++ b/reference/opcache/functions/opcache-invalidate.xml @@ -1,6 +1,6 @@ - + @@ -18,8 +18,7 @@ この関数は opcode キャッシュのうち、特定のスクリプトを無効にします。 force パラメータが指定されていないか、 &false; の場合は、スクリプトの更新時刻が opcode キャッシュ時の更新時刻より新しい場合にだけ無効にします。 - この関数は、インメモリキャッシュ の情報だけを無効にします。 - ファイルキャッシュ の情報は無効にしません。 + opcache.file_cache ディレクティブが有効な場合は、対応するファイルキャッシュのエントリも無効にします。