<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/filter.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'filter.configuration.php',
    1 => '実行時設定',
    2 => '実行時設定',
  ),
  'up' => 
  array (
    0 => 'filter.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'filter.installation.php',
    1 => 'インストール手順',
  ),
  'next' => 
  array (
    0 => 'filter.constants.php',
    1 => '定義済み定数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/filter/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="filter.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="filter.configuration.php#ini.filter.default" class="link">filter.default</a></td>
      <td>&quot;unsafe_raw&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong></td>
      <td>PHP 8.1.0 以降は非推奨</td>
     </tr>

     <tr>
      <td><a href="filter.configuration.php#ini.filter.default-flags" class="link">filter.default_flags</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  INI_* モードの詳細および定義については
<a href="configuration.changes.modes.php" class="xref">どこで設定を行うのか</a> を参照してください。
 </p>

 <p class="para">以下に設定ディレクティブに関する
簡単な説明を示します。</p>

 <dl>
  
   <dt id="ini.filter.default">
    <code class="parameter">filter.default</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     このフィルタで
     <var class="varname"><a href="reserved.variables.get.php" class="classname">$_GET</a></var>, <var class="varname"><a href="reserved.variables.post.php" class="classname">$_POST</a></var>,
     <var class="varname"><a href="reserved.variables.cookies.php" class="classname">$_COOKIE</a></var>, <var class="varname"><a href="reserved.variables.request.php" class="classname">$_REQUEST</a></var>
     および <var class="varname"><a href="reserved.variables.server.php" class="classname">$_SERVER</a></var>
     のすべてのデータをフィルタリングします。
     もとのデータへは <span class="function"><a href="function.filter-input.php" class="function">filter_input()</a></span>
     でアクセスが可能です。
    </p>
    <p class="para">
     <span class="function"><a href="function.filter-list.php" class="function">filter_list()</a></span> と
     <span class="function"><a href="function.filter-id.php" class="function">filter_id()</a></span>
     を使うことで決定できるフィルタ名でなければいけません。
    </p>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <span class="simpara">
      デフォルトフィルタのデフォルトのフラグ設定には注意しましょう。
      意識して、明示的に望みの値に設定しなければなりません。
      たとえば、デフォルトフィルタの設定を
      <span class="function"><a href="function.htmlspecialchars.php" class="function">htmlspecialchars()</a></span> とまったく同様にするには
      デフォルトのフラグを以下のように <code class="literal">0</code> にしなければなりません。
     </span>
     <div class="example" id="example-1">
      <p><strong>例1 デフォルトフィルタを htmlspecialchars と同様の挙動にする設定</strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">filter.default = full_special_chars<br />filter.default_flags = 0</span></code></div>
      </div>

     </div>
    </p></blockquote>
    <div class="warning"><strong class="warning">警告</strong>
     <p class="simpara">
      このINI設定は、PHP 8.1.0 以降では非推奨になっています。
     </p>
    </div>
   </dd>
  

  
   <dt id="ini.filter.default-flags">
    <code class="parameter">filter.default_flags</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <span class="simpara">
     デフォルトのフラグ。デフォルトフィルタが設定されたときに適用されます。
     過去との互換性を保つため、デフォルトは
     <strong><code><a href="filter.constants.php#constant.filter-flag-no-encode-quotes">FILTER_FLAG_NO_ENCODE_QUOTES</a></code></strong>
     となっています。
     利用可能なフラグについては、
     <strong><code><a href="filter.constants.php#constant.filter-flag-none">FILTER_FLAG_<span class="replaceable">*</span></a></code></strong>
     を参照ください。
    </span>
   </dd>
  
 </dl>
</div><?php manual_footer($setup); ?>