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

contributors($setup);

?>
<div id="var.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>变量配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
    <tr>
     <td><a href="var.configuration.php#ini.unserialize-callback-func" class="link">unserialize_callback_func</a></td>
     <td><strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></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="var.configuration.php#ini.unserialize-max-depth" class="link">unserialize_max_depth</a></td>
     <td>&quot;4096&quot;</td>
     <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
     <td>自 PHP 7.4.0 起可用。</td>
    </tr>

    </tbody>
   
  </table>

  有关 INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.php" class="xref">配置可被设定范围</a>。
 </p>
 <p class="para">这是配置指令的简短说明。</p>
 <p class="para">
  <dl>
   
    <dt id="ini.unserialize-callback-func"> 
     <code class="parameter">unserialize_callback_func</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      如果解串行器发现有未定义类要被实例化，将会调用 <span class="function"><a href="function.unserialize.php" class="function">unserialize()</a></span>
      回调函数（用该未定义类名作为参数）。如果指定函数不存在，或者此函数没有包含/实现该未定义类，则显示警告。所以仅在确实需要实现这样的回调函数时才设置该选项。
     </p>
     <p class="para">
      参见 <span class="function"><a href="function.unserialize.php" class="function">unserialize()</a></span> 和<a href="language.oop5.autoload.php" class="link">类的自动加载</a>。
     </p>
    </dd>
   
   
    <dt id="ini.unserialize-max-depth">
     <code class="parameter">unserialize_max_depth</code>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <p class="para">
      使用 <span class="function"><a href="function.unserialize.php" class="function">unserialize()</a></span> 反序列化期间允许的最大结构深度，主要是防止栈溢出。可以通过设置
      <code class="literal">unserialize_max_depth=0</code> 来禁用。
     </p>
     <p class="para">
      参见 <span class="function"><a href="function.unserialize.php" class="function">unserialize()</a></span> 和<a href="language.oop5.autoload.php" class="link">类的自动加载</a>。
     </p>
    </dd>
   
   
  </dl>
 </p>
</div><?php manual_footer($setup); ?>