<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/com.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'com.configuration.php',
    1 => '実行時設定',
    2 => '実行時設定',
  ),
  'up' => 
  array (
    0 => 'com.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'com.installation.php',
    1 => 'インストール手順',
  ),
  'next' => 
  array (
    0 => 'com.constants.php',
    1 => '定義済み定数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/com/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="com.configuration" class="section">
 <h2 class="title">実行時設定</h2>
 <p class="simpara">
<var class="filename">php.ini</var> の設定により動作が変化します。
</p>
 <p class="para">
 <table class="doctable table">
  <caption><strong>COM 設定オプション</strong></caption>
  
   <thead>
    <tr>
     <th>名前</th>
     <th>デフォルト</th>
     <th>変更可能</th>
     <th>変更履歴</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><a href="com.configuration.php#ini.com.allow-dcom" class="link">com.allow_dcom</a></td>
     <td>&quot;0&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="com.configuration.php#ini.com.autoregister-typelib" class="link">com.autoregister_typelib</a></td>
     <td>&quot;0&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="com.configuration.php#ini.com.autoregister-verbose" class="link">com.autoregister_verbose</a></td>
     <td>&quot;0&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="com.configuration.php#ini.com.autoregister-casesensitive" class="link">com.autoregister_casesensitive</a></td>
     <td>&quot;1&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="com.configuration.php#ini.com.code-page" class="link">com.code_page</a></td>
     <td>&quot;&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="com.configuration.php#ini.com.dotnet-version" class="link">com.dotnet_version</a></td>
     <td>&quot;&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
     <td>PHP 8.0.0 以降で利用可能</td>
    </tr>

    <tr>
     <td><a href="com.configuration.php#ini.com.typelib-file" class="link">com.typelib_file</a></td>
     <td>&quot;&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
     <td class="empty">&nbsp;</td>
    </tr>

   </tbody>
  
 </table>

 INI_* モードの詳細および定義については
<a href="configuration.changes.modes.php" class="xref">どこで設定を行うのか</a> を参照してください。
 </p>

 <p class="para">以下に設定ディレクティブに関する
簡単な説明を示します。</p>

 <p class="para">
  <dl>
   
    <dt id="ini.com.allow-dcom">
     <code class="parameter">com.allow_dcom</code>
    </dt>
    <dd>
    <p class="para">
     これを on にすると、PHP が D-COM
     (分散 COM) クライアントとして動作することを許可し、
     PHP スクリプトがリモートサーバー上に COM オブジェクトを生成することを
     許可します。
    </p>
    </dd>
   
   
   
    <dt id="ini.com.autoregister-typelib">
     <code class="parameter">com.autoregister_typelib</code>
    </dt>
    <dd>
    <p class="para">
     これを on にすると、
     生成した <span class="classname"><a href="class.com.php" class="classname">COM</a></span>オブジェクトのタイプライブラリから取得した
     定数を PHP に登録しようと試みます。ただし、それはオブジェクトが
     当該情報を取得するためのインターフェイスを提供している場合のみです。
     登録する定数の大文字小文字を区別するかどうかについては、
     <a href="com.configuration.php#ini.com.autoregister-casesensitive" class="link">com.autoregister_casesensitive</a> <var class="filename">php.ini</var> 設定ディレクティブで制御します。
    </p>
    </dd>
   

   
    <dt id="ini.com.autoregister-verbose">
     <code class="parameter">com.autoregister_verbose</code>
    </dt>
    <dd>
    <p class="para">
     これを on にすると、オブジェクト生成時のタイプライブラリの読み込み中に
     発生したすべての問題が PHP のエラー機構を用いて報告されます。
     デフォルトは off で、この場合はタイプライブラリの検索や読み込みの際の
     エラーは一切報告されません。
    </p>
    </dd>
   

   
    <dt id="ini.com.autoregister-casesensitive">
     <code class="parameter">com.autoregister_casesensitive</code>
    </dt>
    <dd>
    <p class="para">
     これを on にすると (デフォルト)、
     <span class="classname"><a href="class.com.php" class="classname">COM</a></span>オブジェクトをインスタンス化中に自動読み込みされた
     タイプライブラリ中に見つかった定数が、大文字小文字を区別して
     登録されます。詳細は <span class="function"><a href="function.com-load-typelib.php" class="function">com_load_typelib()</a></span>
     を参照ください。
    </p>
    </dd>
   

   
    <dt id="ini.com.code-page">
     <code class="parameter">com.code_page</code>
    </dt>
    <dd>
    <p class="para">
     これは、COM オブジェクトとの文字列の受け渡しに使用するデフォルトの
     文字セットコードページを制御します。空の文字列が設定された場合、
     PHP は <strong><code><a href="com.constants.php#constant.cp-acp">CP_ACP</a></code></strong> が指定されたと仮定します。
     これは、デフォルトのシステム ANSI コードページです。
    </p>
    <p class="para">
     スクリプト中のテキストがデフォルトとは異なるエンコーディング/
     文字セットを使用している場合、このディレクティブを設定することで
     <a href="class.com.php" class="xref">com</a> クラスのコンストラクタのパラメータとして
     コードページを指定する必要がなくなります。
     (他の PHP 設定ディレクティブとともに) このディレクティブを使用すると、
     PHP スクリプトの移植可能性が悪くなることに注意しましょう。
     できる限り、COM のコンストラクタにパラメータを指定する方式をとるべきです。
    </p>
    </dd>
   

   
    <dt id="ini.com.dotnet-version">
     <code class="parameter">com.dotnet_version</code>
    </dt>
    <dd>
    <p class="para">
     <span class="classname"><a href="class.dotnet.php" class="classname">dotnet</a></span> オブジェクトが使う、.NET framework のバージョン。
     この値は、framework のバージョン番号のうち、ドットで区切られた最初の3つの部分で、
     <code class="literal">v</code> が先頭に付きます。たとえば <code class="literal">v4.0.30319</code> のようなものです。
    </p>
    </dd>
   

   
    <dt id="ini.com.typelib-file">
     <code class="parameter">com.typelib_file</code>
    </dt>
    <dd>
    <p class="para">
     このパラメータでは、起動時に読み込まれるタイプライブラリの一覧を
     含むファイルへのパスを保持します。このファイル内の各行が
     タイプライブラリ名として扱われ、<span class="function"><a href="function.com-load-typelib.php" class="function">com_load_typelib()</a></span>
     をコールした際にそれが読み込まれます。登録された定数は永続的に
     保持されるので、ライブラリの読み込みは一度だけでよくなります。
     タイプライブラリの名前が <code class="literal">#cis</code> あるいは
     <code class="literal">#case_insensitive</code> で終わる場合は、そのライブラリから
     読み込まれた定数は大文字小文字を区別せずに登録されます。
    </p>
    </dd>
   
  
  </dl>
 </p>
 
</div><?php manual_footer($setup); ?>