mirror of
https://github.com/php/doc-ja.git
synced 2026-03-23 22:52:11 +01:00
115 lines
3.6 KiB
XML
115 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: e14fdcab82e89bfb4ee221b1de9f4764c93abcf5 Maintainer: nsfisis Status: ready -->
|
|
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="ffi.setup">
|
|
&reftitle.setup;
|
|
|
|
<section xml:id="ffi.requirements">
|
|
&reftitle.required;
|
|
<simpara>
|
|
この拡張には、<link xlink:href="&url.libffi;">libffi library</link> の
|
|
インストールが必要です。
|
|
</simpara>
|
|
</section>
|
|
|
|
<!-- {{{ Installation -->
|
|
&reference.ffi.configure;
|
|
<!-- }}} -->
|
|
|
|
<section xml:id="ffi.configuration">
|
|
&reftitle.runtime;
|
|
&extension.runtime;
|
|
<para>
|
|
<table>
|
|
<title>FFI &ConfigureOptions;</title>
|
|
<tgroup cols="4">
|
|
<thead>
|
|
<row>
|
|
<entry>&Name;</entry>
|
|
<entry>&Default;</entry>
|
|
<entry>&Changeable;</entry>
|
|
<entry>&Changelog;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><link linkend="ini.ffi.enable">ffi.enable</link></entry>
|
|
<entry>"preload"</entry>
|
|
<entry><constant>INI_SYSTEM</constant></entry>
|
|
<entry/>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.ffi.preload">ffi.preload</link></entry>
|
|
<entry>""</entry>
|
|
<entry><constant>INI_SYSTEM</constant></entry>
|
|
<entry/>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
&ini.php.constants;
|
|
</para>
|
|
|
|
&ini.descriptions.title;
|
|
|
|
<variablelist>
|
|
<varlistentry xml:id="ini.ffi.enable">
|
|
<term>
|
|
<parameter>ffi.enable</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
FFI API の使用を有効化する (<literal>"true"</literal>) か
|
|
無効化する (<literal>"false"</literal>) か、
|
|
CLI SAPI と事前ロードファイルでだけ使えるよう制限する (<literal>"preload"</literal>) かを
|
|
指定します。
|
|
</simpara>
|
|
<simpara>
|
|
FFI API の利用制限は、<classname>FFI</classname> クラスにのみ影響し、
|
|
<classname>FFI\CData</classname> オブジェクトのオーバーロードされた関数には影響しません。
|
|
つまり、事前ロードファイルで <classname>FFI\CData</classname> オブジェクトを作成し、
|
|
それを PHP スクリプトで直接使うことは可能だということです。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="ini.ffi.preload">
|
|
<term>
|
|
<parameter>ffi.preload</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
FFI バインディングを起動時に事前ロードできるようにします。
|
|
<link linkend="ini.opcache.preload-user">opcache.preload_user</link> が設定されている場合、
|
|
FFI の事前ロードを <methodname>FFI::load</methodname> で実現することはできません。
|
|
このディレクティブは <constant>DIRECTORY_SEPARATOR</constant> で区切られたファイル名のリストを受け付けます。
|
|
事前ロードされたバインディングは <methodname>FFI::scope</methodname> を呼ぶことでアクセスできます。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</section>
|
|
|
|
</chapter>
|
|
<!-- 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
|
|
-->
|