<?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 => 'ja',
  ),
  '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' => 'ja',
    '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>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">
       何も指定しなかった
       (引数を省略したり <code class="literal">NULL</code> を渡したりした) 場合に intl 関数が使うロケール。
       これは ICU のロケールであり、システムのロケールではありません。
       組み込みの ICU ロケールとそのデータは、
       <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">
       デフォルト値は空文字列で、これは ICU のデフォルトロケールを意味します。
       いったん設定したら、ini の設定でこのデフォルト値に戻すことはできません。
       このデフォルトに依存することはおすすめしません。その値がサーバーの環境に依存するからです。
      </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">
       ICU 関数でエラーが発生したときに生成されるエラーメッセージのタイプ。
       これは <a href="errorfunc.constants.php" class="link">PHP のエラーレベル</a>、
       すなわち <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> などになります。
       <code class="literal">0</code> を設定すれば、エラーメッセージを抑制できます。
       この設定は、エラーを表す戻り値や
       <span class="function"><a href="function.intl-get-error-code.php" class="function">intl_get_error_code()</a></span> が返す値、
       そしてエラーコードやエラーメッセージを取得するクラスメソッドなどには影響しません。
      </p>
      <p class="para">
       デフォルト値は <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">
       true にすると、intl 関数でエラーが発生したときに例外を発生させます。
       この例外は、<span class="classname"><a href="class.intlexception.php" class="classname">IntlException</a></span> 型になります。
       <a href="intl.configuration.php#ini.intl.error-level" class="link">intl.error_level</a> によるエラーメッセージと組み合わせて使うことになるでしょう。
      </p>
      <p class="para">デフォルト値は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> です。</p>
     </dd>
    

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