Instalação

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 --with-pcre-regex=DIR configuration option where DIR is the location of PCRE's include and library files. It is recommended to use PCRE 8.10 or newer; as of PHP 7.3.0, PCRE2 is required.

PCRE's just-in-time compilation is supported by default, which can be disabled with the --without-pcre-jit configuration option as of PHP 7.0.12.

A versão do PHP para Windows tem suporte nativo para esta extensão. Nenhuma extensão adicional precisa ser carregada para usar essas funções.

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 » PCRE library changelog and also the following bundled PCRE history:

Upgrade history of the bundled PCRE library
PHP VersãoUpdated PCRE VersãoNotes
8.2.010.40 
8.1.010.39 
7.4.12, 8.0.010.35 
7.4.610.34 
7.4.010.33 
7.3.010.32 
7.2.08.41 
7.0.38.38See CVE-2015-8383, CVE-2015-8386, CVE-2015-8387, CVE-2015-8389, CVE-2015-8390, CVE-2015-8391, CVE-2015-8393, CVE-2015-8394
7.0.08.37See CVE-2015-2325, CVE-2015-2326
To Top