<?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 => 'zh',
  ),
  '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' => 'en',
    '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>Added in 1.2.0, before 2.0.0 the default was 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 by default, but can be set to on to cause base64 binary encoded entities which have the explicit tag &quot;tag:yaml.org,2002:binary&quot; to be decoded.
          </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 by default, but can be set to on to cause serialized php objects which have the explicit tag &quot;!php/object&quot; to be unserialized.
          </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">
            Controls the decoding of both implicit and explicit &quot;tag:yaml.org,2002:timestamp&quot; scalars in the YAML document stream. The default setting of <code class="literal">0</code> will not apply any decoding. A setting of <code class="literal">1</code> will use <span class="function"><a href="function.strtotime.php" class="function">strtotime()</a></span> to parse the timestamp value as a Unix timestamp. A setting of <code class="literal">2</code> will use <span class="function"><a href="function.date-create.php" class="function">date_create()</a></span> to parse the timestamp value as <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span> object.
          </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 bool">bool</a></span>
        </dt>
        <dd>
          <p class="para">
            Off by default, but can be set to on to cause canonical form output.
          </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">
            Number of spaces to indent sections. Value should be between
            <code class="literal">1</code> and <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">
            Set the preferred line width. <code class="literal">-1</code> means unlimited.
          </p>
        </dd>
      
    </dl>
  </p>
</div><?php manual_footer($setup); ?>