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

contributors($setup);

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

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="intl.configuration.php#ini.intl.default-locale" class="link">intl.default_locale</a></td>
      <td class="empty">&nbsp;</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="intl.configuration.php#ini.intl.error-level" class="link">intl.error_level</a></td>
      <td>0</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="intl.configuration.php#ini.intl.use-exceptions" class="link">intl.use_exceptions</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td>Available since PECL 3.0.0a1</td>
     </tr>

    </tbody>
   
  </table>

 </p>

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

 <p class="para">
  <dl>
   
     <dt id="ini.intl.default-locale">
      <code class="parameter">intl.default_locale</code>
      <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     </dt>
     <dd>
      <p class="para">
       The locale that will be used in intl functions when none is specified
       (either by omitting the corresponding argument or by passing
       <code class="literal">NULL</code>). These are ICU locales, not system locales.
       The built-in ICU locales and their data can be explored at
       <a href="https://unicode-org.github.io/icu/userguide/locale/" class="link external">&raquo;&nbsp;https://unicode-org.github.io/icu/userguide/locale/</a>.
      </p>
      <p class="para">
       The default value is empty, which forces the usage of ICU&#039;s default
       locale. Once set, the ini setting cannot be reset to this default value.
       It is not recommended that this default be relied on, as its effective
       value depends on the server&#039;s environment.
      </p>
     </dd>
    
    
     <dt id="ini.intl.error-level">
      <code class="parameter">intl.error_level</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="para">
       The type of the error messages generated when an error occurs in ICU
       functions. This is a
       <a href="errorfunc.constants.php" class="link">PHP error level</a>, such as
       <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>. It can be set to <code class="literal">0</code>
       in order to inhibit the messages. This does not affect the return values
       indicating error or the values returned by
       <span class="function"><a href="function.intl-get-error-code.php" class="function">intl_get_error_code()</a></span> or by the class specific
       methods for retrieving error codes and messages.
      </p>
      <p class="para">
       The default value is <code class="literal">0</code>.
      </p>
     </dd>
    
    
     <dt id="ini.intl.use-exceptions">
      <code class="parameter">intl.use_exceptions</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="para">
       If set to true, an exception will be raised whenever an error occurs in
       an intl function. The exception will be of type
       <span class="classname"><a href="class.intlexception.php" class="classname">IntlException</a></span>. This is possibly in addition to the
       error message generated due to <a href="intl.configuration.php#ini.intl.error-level" class="link">intl.error_level</a>.
      </p>
      <p class="para">The default value is <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.</p>
     </dd>
    

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