<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="expect.configuration" xmlns="http://docbook.org/ns/docbook">
 &reftitle.runtime;
 &extension.runtime;
 <para>
  In order to configure expect extension, there are configuration options
  in the <link linkend="configuration.file">configuration file</link> &php.ini;.
  <table>
   <title>Expect &ConfigureOptions;</title>
   <tgroup cols="4">
    <thead>
     <row>
      <entry>&Name;</entry>
      <entry>&Default;</entry>
      <entry>&Changeable;</entry>
      <entry>Changelog</entry>
     </row>
    </thead>
    <tbody xml:id="expect.configuration.list">
     <row>
      <entry><link linkend="ini.expect.timeout">expect.timeout</link></entry>
      <entry>"10"</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.expect.loguser">expect.loguser</link></entry>
      <entry>"1"</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.expect.logfile">expect.logfile</link></entry>
      <entry>""</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.expect.match-max">expect.match_max</link></entry>
      <entry>""</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
    </tbody>
   </tgroup>
  </table>
  &ini.php.constants;
 </para>
 
 &ini.descriptions.title;
 
 <para>
  <variablelist>
   <varlistentry xml:id="ini.expect.timeout">
    <term>
     <parameter>expect.timeout</parameter>
     <type>int</type>
    </term>
    <listitem>
     <para>
      The timeout period for waiting for the data, when using the
      <function>expect_expectl</function> function.
     </para>
     <para>
      A value of "-1" disables a timeout from occurring.
     </para>
     <note>
      <para>
       A value of "0" causes the <function>expect_expectl</function>
       function to return immediately.
      </para>
     </note>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.expect.loguser">
    <term>
     <parameter>expect.loguser</parameter>
     <type>bool</type>
    </term>
    <listitem>
     <para>
      Whether expect should send any output from the spawned process to stdout.
      Since interactive programs typically echo their input, this usually suffices
      to show both sides of the conversation.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.expect.logfile">
    <term>
     <parameter>expect.logfile</parameter>
     <type>string</type>
    </term>
    <listitem>
     <para>
      Name of the file, where the output from the spawned process will be
      written. If this file doesn't exist, it will be created.
     </para>
     <note>
      <para>
       If this configuration is not empty, the output is written regardless of
       the value of <link linkend="ini.expect.loguser">expect.loguser</link>.
      </para>
     </note>
    </listitem>
   </varlistentry>

   <varlistentry xml:id="ini.expect.match-max">
    <term>
     <parameter>expect.match_max</parameter>
     <type>int</type>
    </term>
    <listitem>
     <para>
      Changes default size (2000 bytes) of the buffer used to match asterisks
      in patterns.
     </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
-->
