<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/yaml.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'yaml.configuration.php',
    1 => 'Настройка во время выполнения',
    2 => 'Настройка во время выполнения',
  ),
  'up' => 
  array (
    0 => 'yaml.setup.php',
    1 => 'Установка и настройка',
  ),
  'prev' => 
  array (
    0 => 'yaml.installation.php',
    1 => 'Установка',
  ),
  'next' => 
  array (
    0 => 'yaml.constants.php',
    1 => 'Предопределённые константы',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/yaml/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaml.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>Опции настройки Yaml</strong></caption>
   
    <thead>
     <tr>
      <th>Имя</th>
      <th>По умолчанию</th>
      <th>Место изменения</th>
      <th>Список изменений</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="yaml.configuration.php#ini.yaml.decode-binary" class="link">yaml.decode_binary</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yaml.configuration.php#ini.yaml.decode-php" class="link">yaml.decode_php</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td>Добавлено в 1.2.0, до версии 2.0.0 значение по умолчанию было 1</td>
     </tr>

     <tr>
      <td><a href="yaml.configuration.php#ini.yaml.decode-timestamp" class="link">yaml.decode_timestamp</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yaml.configuration.php#ini.yaml.output-canonical" class="link">yaml.output_canonical</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yaml.configuration.php#ini.yaml.output-indent" class="link">yaml.output_indent</a></td>
      <td>2</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yaml.configuration.php#ini.yaml.output-width" class="link">yaml.output_width</a></td>
      <td>80</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td></td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">Краткое разъяснение конфигурационных
директив.</p>

 <p class="para">
  <dl>
   
    <dt id="ini.yaml.decode-binary">
     <code class="parameter">yaml.decode_binary</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      По умолчанию Off. Если установить как On, то будут декодироваться бинарные записи
      кодированные в base64 и имеющие тег &quot;tag:yaml.org,2002:binary&quot;.
     </p>
    </dd>
   
   
    <dt id="ini.yaml.decode-php">
     <code class="parameter">yaml.decode_php</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      По умолчанию Off. Если задать как On, то сериализованные объекты PHP с
      явно заданным тегом &quot;!php/object&quot; будут десериализованы.
     </p>
    </dd>
   
   
    <dt id="ini.yaml.decode-timestamp">
     <code class="parameter">yaml.decode_timestamp</code>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <p class="para">
      Контролирует декодирование явных и неявных скаляров
      &quot;tag:yaml.org,2002:timestamp&quot; в потоке документов YAML. Значение по умолчанию
      равно <code class="literal">0</code>, что означает отсутствие декодирования. Если задать
      <code class="literal">1</code>, то для разбора временной метки Unix будет использоваться
      <span class="function"><a href="function.strtotime.php" class="function">strtotime()</a></span>. Если задать <code class="literal">2</code>, то для разбора
      временной метки будет использоваться <span class="function"><a href="function.date-create.php" class="function">date_create()</a></span>,
      создающая объект <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span>.
     </p>
    </dd>
   
   
    <dt id="ini.yaml.output-canonical">
     <code class="parameter">yaml.output_canonical</code>
     <span class="type"><a href="language.types.boolean.php" class="type boolean">boolean</a></span>
    </dt>
    <dd>
     <p class="para">
      По умолчанию Off. Если задать как On, то будет использоваться каноничный
      вывод форм.
     </p>
    </dd>
   
   
    <dt id="ini.yaml.output-indent">
     <code class="parameter">yaml.output_indent</code>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <p class="para">
      Количество пробелов для разделения секций. Должно быть в диапазоне
      от <code class="literal">1</code> до <code class="literal">10</code>.
     </p>
    </dd>
   
   
    <dt id="ini.yaml.output-width">
     <code class="parameter">yaml.output_width</code>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <p class="para">
      Задаёт предпочтительную ширину строки. <code class="literal">-1</code> для неограниченной длины.
     </p>
    </dd>
   
  </dl>
 </p>
</div><?php manual_footer($setup); ?>