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

contributors($setup);

?>
<div id="pcre.installation" class="section">
 <h2 class="title">インストール手順</h2>
 <p class="para">
  PCRE は PHP のコア拡張モジュールなので、常に有効となっています。
  デフォルトでは、この拡張モジュールのコンパイルには、バンドルされている PCRE
  ライブラリを利用します。別の PCRE ライブラリを使ってコンパイルする場合は、オプション
  <strong class="option configure">--with-pcre-regex=DIR</strong> を利用します。
  このとき <code class="literal">DIR</code> には、PCRE のインクルードファイルやライブラリファイルがある場所を指定します。
  PCRE 8.10 以降を使うことを推奨します。PHP 7.3.0 以降では、PCRE2 が必須になっています。
 </p>
 <p class="para">
  PCRE の JIT(ジャストインタイムコンパイル) 機能はデフォルトでサポートされています。
  PHP 7.0.12 以降では、<strong class="option configure">--without-pcre-jit</strong> 構成オプションで無効化できます。
 </p>
 <p class="simpara">Windows 版の <code class="literal">PHP</code> には
この拡張モジュールのサポートが組み込まれています。これらの関数を使用
するために拡張モジュールを追加でロードする必要はありません。</p>
 <p class="para">
  PCRE は活発なプロジェクトであり、変化し続けています。
  PHP で使える機能もそれに依存しています。
  PHP のドキュメントも部分的に時代遅れになっている可能性があり、
  PCRE の最新機能は網羅できていないかもしれません。
  変更点の一覧は、
  <a href="http://www.pcre.org/original/changelog.txt" class="link external">&raquo;&nbsp;PCRE ライブラリの変更履歴</a>
  を参照ください。また、バンドルされている PCRE
  の履歴も参考になるでしょう。
 </p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>バンドルされている PCRE ライブラリの更新履歴</strong></caption>
   
    <thead>
     <tr>
      <th>PHP バージョン</th>
      <th>PCRE バージョン</th>
      <th>備考</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.2.0</td>
      <td>10.40</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>8.1.0</td>
      <td>10.39</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>7.4.12, 8.0.0</td>
      <td>10.35</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>7.4.6</td>
      <td>10.34</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>7.4.0</td>
      <td>10.33</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>7.3.0</td>
      <td>10.32</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>7.2.0</td>
      <td>8.41</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>7.0.3</td>
      <td>8.38</td>
      <td>See CVE-2015-8383, CVE-2015-8386, CVE-2015-8387, CVE-2015-8389, CVE-2015-8390, CVE-2015-8391, CVE-2015-8393, CVE-2015-8394</td>
     </tr>

     <tr>
      <td>7.0.0</td>
      <td>8.37</td>
      <td>See CVE-2015-2325, CVE-2015-2326</td>
     </tr>

    </tbody>
   
  </table>

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