<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'pcre.installation.php',
    1 => 'Installation',
    2 => 'Installation',
  ),
  'up' => 
  array (
    0 => 'pcre.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'pcre.setup.php',
    1 => 'Installing/Configuring',
  ),
  'next' => 
  array (
    0 => 'pcre.configuration.php',
    1 => 'Runtime Configuration',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">Installation</h2>
 <p class="para">
  The PCRE extension is a core PHP extension, so it is always enabled.
  By default, this extension is compiled using the bundled PCRE
  library. Alternatively, an external PCRE library can be used by
  passing in the <strong class="option configure">--with-pcre-regex=DIR</strong>
  configuration option where <code class="literal">DIR</code> is the location of
  PCRE&#039;s include and library files. It is recommended to use PCRE 8.10 or newer;
  as of PHP 7.3.0, PCRE2 is required.
 </p>
 <p class="para">
  PCRE&#039;s just-in-time compilation is supported by default, which
  can be disabled with the <strong class="option configure">--without-pcre-jit</strong>
  configuration option as of PHP 7.0.12.
 </p>
 <p class="simpara">The Windows version of PHP has built-in
support for this extension. You do not need to load any additional
extensions in order to use these functions.</p>
 <p class="para">
  PCRE is an active project and as it changes so does the PHP
  functionality that relies upon it. It is possible that certain parts
  of the PHP documentation is outdated, in that it may not cover the
  newest features that PCRE provides. For a list of changes, see the
  <a href="http://www.pcre.org/original/changelog.txt" class="link external">&raquo;&nbsp;PCRE library changelog</a>
  and also the following bundled PCRE history:
 </p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Upgrade history of the bundled PCRE library</strong></caption>
   
    <thead>
     <tr>
      <th>PHP Version</th>
      <th>Updated PCRE Version</th>
      <th>Notes</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); ?>