From c857a807ccbb693e579bf1161ebff1d4951a3fb9 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 23 Feb 2026 13:10:24 +0100 Subject: [PATCH 1/2] =?UTF-8?q?opcache=20=E9=96=A2=E6=95=B0=E3=81=AE?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit doc-en に存在するが doc-ja に欠けている opcache 関数の翻訳を追加します。 - opcache_is_script_cached_in_file_cache - opcache_jit_blacklist --- ...opcache-is-script-cached-in-file-cache.xml | 74 ++++++++++++ .../functions/opcache-jit-blacklist.xml | 107 ++++++++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml create mode 100644 reference/opcache/functions/opcache-jit-blacklist.xml diff --git a/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml b/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml new file mode 100644 index 0000000000..3613383fee --- /dev/null +++ b/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml @@ -0,0 +1,74 @@ + + + + + + opcache_is_script_cached_in_file_cache + スクリプトが OPCache のファイルキャッシュにキャッシュされているかどうかを伝えます + + + + &reftitle.description; + + boolopcache_is_script_cached_in_file_cache + stringfilename + + + この関数は、PHP スクリプトが OPCache にキャッシュされているかチェックします。 + これは、特定のスクリプトに対するキャッシュの "ウォーミング" をより簡単に検出するために使用できます。 + この関数は、ファイルキャッシュの情報だけをチェックし、インメモリキャッシュはチェックしません。 + インメモリキャッシュをチェックするには、opcache_is_script_cached + を使用してください。 + + + + + &reftitle.parameters; + + + filename + + + チェックされる PHP スクリプトへのパスです。 + + + + + + + + &reftitle.returnvalues; + + filename が OPCache にキャッシュされている場合、&true; を、 + そうでなければ &false; を返します。 + + + + + &reftitle.seealso; + + opcache_compile_file + opcache_is_script_cached + + + + diff --git a/reference/opcache/functions/opcache-jit-blacklist.xml b/reference/opcache/functions/opcache-jit-blacklist.xml new file mode 100644 index 0000000000..8b7b43a621 --- /dev/null +++ b/reference/opcache/functions/opcache-jit-blacklist.xml @@ -0,0 +1,107 @@ + + + + + + opcache_jit_blacklist + 関数を JIT コンパイルのブラックリストに追加する + + + + &reftitle.description; + + void + opcache_jit_blacklist + + Closure + closure + + + + Tracing JIT が使用されている場合に、特定の関数を JIT コンパイルのブラックリストに追加します。 + 対象の関数は Closure を使って指定します。 + + + + 既に JIT コンパイルされた部分は影響を受けず、 + 引き続き JIT コンパイルされたままになります。 + + + + + + &reftitle.parameters; + + + + closure + + + + ブラックリストに追加する関数。第一級カラブル (first class callable) として表現されます。 + 無名関数を渡すこともでき、その場合は無名関数自体がブラックリストに追加されます。 + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>opcache_jit_blacklist</function> + の基本的な例 + + + +]]> + + + + + + &reftitle.seealso; + + opcache_invalidate + opcache_reset + + + + From 33e166d4ce4c68167d66d4222735c987a90999a4 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Mon, 23 Feb 2026 15:19:38 +0100 Subject: [PATCH 2/2] Update reference/opcache/functions/opcache-jit-blacklist.xml Co-authored-by: KentarouTakeda <4785040+KentarouTakeda@users.noreply.github.com> --- reference/opcache/functions/opcache-jit-blacklist.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/opcache/functions/opcache-jit-blacklist.xml b/reference/opcache/functions/opcache-jit-blacklist.xml index 8b7b43a621..d9afbb923d 100644 --- a/reference/opcache/functions/opcache-jit-blacklist.xml +++ b/reference/opcache/functions/opcache-jit-blacklist.xml @@ -38,7 +38,7 @@ - ブラックリストに追加する関数。第一級カラブル (first class callable) として表現されます。 + ブラックリストに追加する関数。第一級callable (first class callable) として表現されます。 無名関数を渡すこともでき、その場合は無名関数自体がブラックリストに追加されます。