<?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 => 'ru',
  ),
  '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' => 'ru',
    '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">
  Для настройки модуля Expect в <a href="configuration.file.php" class="link">конфигурационном файле</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">
     Максимальное время ожидания данных вызове функции
     <span class="function"><a href="function.expect-expectl.php" class="function">expect_expectl()</a></span>.
    </span>
    <span class="simpara">
     Значение &quot;-1&quot; задаёт вечное ожидание.
    </span>
    <blockquote class="note"><p><strong class="note">Замечание</strong>: 
     <span class="simpara">
      Значение &quot;0&quot; означает, что функция <span class="function"><a href="function.expect-expectl.php" class="function">expect_expectl()</a></span>
      завершится сразу.
     </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">
     Директива определяет, будет ли порождённый процесс производить вывод в поток stdout.
     Интерактивные программы часто дублируют пользовательский ввод, поэтому в большей части случаев опцию включают,
     чтобы взаимодействие было осознанным.
    </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">
     Название файла для записи вывода порождённого процесса.
     Модуль создаст файл, если не найдёт его по заданному пути.
    </span>
    <blockquote class="note"><p><strong class="note">Замечание</strong>: 
     <span class="simpara">
      При установке для директивы непустого значения
      вывод записывается в файл независимо от настройки директивы
      <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">
     Директива изменяет стандартный размер буфера для поиска символа
     звёздочки в шаблонах. Размер буфера по умолчанию составляет 2000 байтов.
    </span>
   </dd>
  

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