<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="com.configuration" xmlns="http://docbook.org/ns/docbook">
 &reftitle.runtime;
 &extension.runtime;
 <para>
 <table>
  <title>Com configuration options</title>
  <tgroup cols="4">
   <thead>
    <row>
     <entry>&Name;</entry>
     <entry>&Default;</entry>
     <entry>&Changeable;</entry>
     <entry>&Changelog;</entry>
    </row>
   </thead>
   <tbody xml:id="com.configuration.list">
    <row>
     <entry><link linkend="ini.com.allow-dcom">com.allow_dcom</link></entry>
     <entry>"0"</entry>
     <entry>PHP_INI_SYSTEM</entry>
     <entry></entry>
    </row>
    <row>
     <entry><link linkend="ini.com.autoregister-typelib">com.autoregister_typelib</link></entry>
     <entry>"0"</entry>
     <entry>PHP_INI_ALL</entry>
     <entry></entry>
    </row>
    <row>
     <entry><link linkend="ini.com.autoregister-verbose">com.autoregister_verbose</link></entry>
     <entry>"0"</entry>
     <entry>PHP_INI_ALL</entry>
     <entry></entry>
    </row>
    <row>
     <entry><link linkend="ini.com.autoregister-casesensitive">com.autoregister_casesensitive</link></entry>
     <entry>"1"</entry>
     <entry>PHP_INI_ALL</entry>
     <entry></entry>
    </row>
    <row>
     <entry><link linkend="ini.com.code-page">com.code_page</link></entry>
     <entry>""</entry>
     <entry>PHP_INI_ALL</entry>
     <entry></entry>
    </row>
    <row>
     <entry><link linkend="ini.com.dotnet-version">com.dotnet_version</link></entry>
     <entry>""</entry>
     <entry>PHP_INI_SYSTEM</entry>
     <entry>As of PHP 8.0.0</entry>
    </row>
    <row>
     <entry><link linkend="ini.com.typelib-file">com.typelib_file</link></entry>
     <entry>""</entry>
     <entry>PHP_INI_SYSTEM</entry>
     <entry></entry>
    </row>
   </tbody>
  </tgroup>
 </table>
 &ini.php.constants;
 </para>

 &ini.descriptions.title;

 <para>
  <variablelist>
   <varlistentry xml:id="ini.com.allow-dcom">
    <term>
     <parameter>com.allow_dcom</parameter>
    </term>
    <listitem>
    <para>
     When this is turned on, PHP will be allowed to operate as a D-COM
     (Distributed COM) client and will allow the PHP script to instantiate
     COM objects on a remote server.
    </para>
    </listitem>
   </varlistentry>
   
   <varlistentry xml:id="ini.com.autoregister-typelib">
    <term>
     <parameter>com.autoregister_typelib</parameter>
    </term>
    <listitem>
    <para>
     When this is turned on, PHP will attempt to register constants from
     the typelibrary of <classname>COM</classname> objects that it instantiates, if those objects
     implement the interfaces required to obtain that information.
     The case sensitivity of the constants it registers is controlled by the
     <link
     linkend="ini.com.autoregister-casesensitive">com.autoregister_casesensitive</link> &php.ini; directive.
    </para>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.com.autoregister-verbose">
    <term>
     <parameter>com.autoregister_verbose</parameter>
    </term>
    <listitem>
    <para>
     When this is turned on, any problems with loading a typelibrary during
     object instantiation will be reported using the PHP error mechanism.
     The default is off, which does not emit any indication if there was
     an error finding or loading the type library.
    </para>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.com.autoregister-casesensitive">
    <term>
     <parameter>com.autoregister_casesensitive</parameter>
    </term>
    <listitem>
    <para>
     When this is turned on (the default), constants found in auto-loaded
     type libraries when instatiating <classname>COM</classname> objects will be registered case sensitively.  See
     <function>com_load_typelib</function> for more details.
    </para>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.com.code-page">
    <term>
     <parameter>com.code_page</parameter>
    </term>
    <listitem>
    <para>
     It controls the default character set code-page to use when passing
     strings to and from COM objects.  If set to an empty string, PHP will
     assume that you want <constant>CP_ACP</constant>, which is the default
     system ANSI code page.
    </para>
    <para>
     If the text in your scripts is encoded using a different
     encoding/character set by default, setting this directive will save you
     from having to pass the code page as a parameter to the <xref
     linkend="class.com"/> class constructor.  Please note that by
     using this directive (as with any PHP configuration directive), your PHP
     script becomes less portable; you should use the COM constructor parameter
     whenever possible.
    </para>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.com.dotnet-version">
    <term>
     <parameter>com.dotnet_version</parameter>
    </term>
    <listitem>
    <para>
     The version of the .NET framework to use for <classname>dotnet</classname> objects.
     The value of the setting is the first three parts of the framework's version number,
     separated by dots, and prefixed with <literal>v</literal>, e.g. <literal>v4.0.30319</literal>.
    </para>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.com.typelib-file">
    <term>
     <parameter>com.typelib_file</parameter>
    </term>
    <listitem>
    <para>
     When set, this should hold the path to a file that contains a list
     of typelibraries that should be loaded on startup.  Each line of
     the file will be treated as the type library name and loaded as
     though you had called <function>com_load_typelib</function>.
     The constants will be registered persistently, so that the library
     only needs to be loaded once.  If a type library name ends with the
     string <literal>#cis</literal> or <literal>#case_insensitive</literal>,
     then the constants from that library will be registered case
     insensitively.
    </para>
    </listitem>
   </varlistentry>
  
  </variablelist>
 </para>
 
</section>

<!-- 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
-->

