-
Notifications
You must be signed in to change notification settings - Fork 81
opcache 関数の翻訳を追加 #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
opcache 関数の翻訳を追加 #330
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- $Revision$ --> | ||
| <!-- EN-Revision: 5a33c90d38ae2ef33b8096b7356faf7013847ee4 Maintainer: mumumu Status: ready --> | ||
| <refentry xml:id="function.opcache-is-script-cached-in-file-cache" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
| <refnamediv> | ||
| <refname>opcache_is_script_cached_in_file_cache</refname> | ||
| <refpurpose>スクリプトが OPCache のファイルキャッシュにキャッシュされているかどうかを伝えます</refpurpose> | ||
| </refnamediv> | ||
|
|
||
| <refsect1 role="description"> | ||
| &reftitle.description; | ||
| <methodsynopsis> | ||
| <type>bool</type><methodname>opcache_is_script_cached_in_file_cache</methodname> | ||
| <methodparam><type>string</type><parameter>filename</parameter></methodparam> | ||
| </methodsynopsis> | ||
| <simpara> | ||
| この関数は、PHP スクリプトが OPCache にキャッシュされているかチェックします。 | ||
| これは、特定のスクリプトに対するキャッシュの "ウォーミング" をより簡単に検出するために使用できます。 | ||
| この関数は、ファイルキャッシュの情報だけをチェックし、インメモリキャッシュはチェックしません。 | ||
| インメモリキャッシュをチェックするには、<function>opcache_is_script_cached</function> | ||
| を使用してください。 | ||
| </simpara> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="parameters"> | ||
| &reftitle.parameters; | ||
| <variablelist> | ||
| <varlistentry> | ||
| <term><parameter>filename</parameter></term> | ||
| <listitem> | ||
| <simpara> | ||
| チェックされる PHP スクリプトへのパスです。 | ||
| </simpara> | ||
| </listitem> | ||
| </varlistentry> | ||
| </variablelist> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="returnvalues"> | ||
| &reftitle.returnvalues; | ||
| <simpara> | ||
| <parameter>filename</parameter> が OPCache にキャッシュされている場合、&true; を、 | ||
| そうでなければ &false; を返します。 | ||
| </simpara> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="seealso"> | ||
| &reftitle.seealso; | ||
| <simplelist> | ||
| <member><function>opcache_compile_file</function></member> | ||
| <member><function>opcache_is_script_cached</function></member> | ||
| </simplelist> | ||
| </refsect1> | ||
| </refentry> | ||
| <!-- Keep this comment at the end of the file | ||
| Local variables: | ||
| mode: sgml | ||
| sgml-omittag:t | ||
| sgml-shorttag:t | ||
| sgml-minimize-attributes:nil | ||
| sgml-always-quote-attributes:t | ||
| sgml-indent-step:1 | ||
| sgml-indent-data:t | ||
| indent-tabs-mode:nil | ||
| sgml-parent-document:nil | ||
| sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
| sgml-exposed-tags:nil | ||
| sgml-local-catalogs:nil | ||
| sgml-local-ecat-files:nil | ||
| End: | ||
| vim600: syn=xml fen fdm=syntax fdl=2 si | ||
| vim: et tw=78 syn=sgml | ||
| vi: ts=1 sw=1 | ||
| --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- $Revision$ --> | ||
| <!-- EN-Revision: 3c36a56c9e6875fbe3295827a15747d6eae9572e Maintainer: mumumu Status: ready --> | ||
| <refentry xml:id="function.opcache-jit-blacklist" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
| <refnamediv> | ||
| <refname>opcache_jit_blacklist</refname> | ||
| <refpurpose>関数を JIT コンパイルのブラックリストに追加する</refpurpose> | ||
| </refnamediv> | ||
|
|
||
| <refsect1 role="description"> | ||
| &reftitle.description; | ||
| <methodsynopsis> | ||
| <type>void</type> | ||
| <methodname>opcache_jit_blacklist</methodname> | ||
| <methodparam> | ||
| <type>Closure</type> | ||
| <parameter>closure</parameter> | ||
| </methodparam> | ||
| </methodsynopsis> | ||
| <simpara> | ||
| Tracing JIT が使用されている場合に、特定の関数を JIT コンパイルのブラックリストに追加します。 | ||
| 対象の関数は <classname>Closure</classname> を使って指定します。 | ||
| </simpara> | ||
| <warning> | ||
| <simpara> | ||
| 既に JIT コンパイルされた部分は影響を受けず、 | ||
| 引き続き JIT コンパイルされたままになります。 | ||
| </simpara> | ||
| </warning> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="parameters"> | ||
| &reftitle.parameters; | ||
| <variablelist> | ||
| <varlistentry> | ||
| <term> | ||
| <parameter>closure</parameter> | ||
| </term> | ||
| <listitem> | ||
| <simpara> | ||
| ブラックリストに追加する関数。第一級カラブル (first class callable) として表現されます。 | ||
| 無名関数を渡すこともでき、その場合は無名関数自体がブラックリストに追加されます。 | ||
| </simpara> | ||
| </listitem> | ||
| </varlistentry> | ||
| </variablelist> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="returnvalues"> | ||
| &reftitle.returnvalues; | ||
| <simpara> | ||
| &return.void; | ||
| </simpara> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="examples"> | ||
| &reftitle.examples; | ||
| <example> | ||
| <title> | ||
| <function>opcache_jit_blacklist</function> | ||
| の基本的な例 | ||
| </title> | ||
| <programlisting role="php"> | ||
| <![CDATA[ | ||
| <?php | ||
| function foo() { | ||
| $x = 1; | ||
| $x += 0; | ||
| ++$x; | ||
| var_dump($x); | ||
| } | ||
| opcache_jit_blacklist(foo(...)); | ||
| foo(); | ||
| ?> | ||
| ]]> | ||
| </programlisting> | ||
| </example> | ||
| </refsect1> | ||
|
|
||
| <refsect1 role="seealso"> | ||
| &reftitle.seealso; | ||
| <simplelist> | ||
| <member><function>opcache_invalidate</function></member> | ||
| <member><function>opcache_reset</function></member> | ||
| </simplelist> | ||
| </refsect1> | ||
| </refentry> | ||
| <!-- Keep this comment at the end of the file | ||
| Local variables: | ||
| mode: sgml | ||
| sgml-omittag:t | ||
| sgml-shorttag:t | ||
| sgml-minimize-attributes:nil | ||
| sgml-always-quote-attributes:t | ||
| sgml-indent-step:1 | ||
| sgml-indent-data:t | ||
| indent-tabs-mode:nil | ||
| sgml-parent-document:nil | ||
| sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
| sgml-exposed-tags:nil | ||
| sgml-local-catalogs:nil | ||
| sgml-local-ecat-files:nil | ||
| End: | ||
| vim600: syn=xml fen fdm=syntax fdl=2 si | ||
| vim: et tw=78 syn=sgml | ||
| vi: ts=1 sw=1 | ||
| --> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.