<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/expect.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'expect.configuration.php',
    1 => '运行时配置',
    2 => '运行时配置',
  ),
  'up' => 
  array (
    0 => 'expect.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'expect.installation.php',
    1 => '安装',
  ),
  'next' => 
  array (
    0 => 'expect.resources.php',
    1 => '资源类型',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/expect/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="expect.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  In order to configure expect extension, there are configuration options
  in the <a href="configuration.file.php" class="link">configuration file</a> <var class="filename">php.ini</var>.
  <table class="doctable table">
   <caption><strong>Expect 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="expect.configuration.php#ini.expect.timeout" class="link">expect.timeout</a></td>
      <td>&quot;10&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="expect.configuration.php#ini.expect.loguser" class="link">expect.loguser</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="expect.configuration.php#ini.expect.logfile" class="link">expect.logfile</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="expect.configuration.php#ini.expect.match-max" class="link">expect.match_max</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>

    </tbody>
   
  </table>

  有关 INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.php" class="xref">配置可被设定范围</a>。
 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <dl>
  
   <dt id="ini.expect.timeout">
    <code class="parameter">expect.timeout</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <span class="simpara">
     The timeout period for waiting for the data, when using the
     <span class="function"><a href="function.expect-expectl.php" class="function">expect_expectl()</a></span> function.
    </span>
    <span class="simpara">
     A value of &quot;-1&quot; disables a timeout from occurring.
    </span>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <span class="simpara">
      A value of &quot;0&quot; causes the <span class="function"><a href="function.expect-expectl.php" class="function">expect_expectl()</a></span>
      function to return immediately.
     </span>
    </p></blockquote>
   </dd>
  

  
   <dt id="ini.expect.loguser">
    <code class="parameter">expect.loguser</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
   </dt>
   <dd>
    <span class="simpara">
     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.
    </span>
   </dd>
  

  
   <dt id="ini.expect.logfile">
    <code class="parameter">expect.logfile</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <span class="simpara">
     Name of the file, where the output from the spawned process will be
     written. If this file doesn&#039;t exist, it will be created.
    </span>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <span class="simpara">
      If this configuration is not empty, the output is written regardless of
      the value of <a href="expect.configuration.php#ini.expect.loguser" class="link">expect.loguser</a>.
     </span>
    </p></blockquote>
   </dd>
  

  
   <dt id="ini.expect.match-max">
    <code class="parameter">expect.match_max</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <span class="simpara">
     Changes default size (2000 bytes) of the buffer used to match asterisks
     in patterns.
    </span>
   </dd>
  

 </dl>
</div><?php manual_footer($setup); ?>