php8.5
Home/ Manual/ reference / pcre/ Upgrade history of the bundled PCRE library

Upgrade history of the bundled PCRE library

The PCRE extension is a core PHP extension and is always enabled.

Install

The PCRE extension is a core PHP extension and is always enabled.

By default, the extension uses a bundled version of the PCRE2 library. On non-Windows systems, an external PCRE2 library can be used instead with the --with-external-pcre configuration option. The minimum supported version is 10.30. Windows builds always use the bundled library.

PCRE2's just-in-time (JIT) compilation is enabled by default. It can be disabled with the --without-pcre-jit configuration option.

Builtin

PCRE2 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 are outdated. For a list of changes, see the PCRE2 library changelog. The upgrade history of the bundled library is listed below:

PHP VersionUpdated PCRE VersionNotes
8.4.010.44
8.3.010.42
8.2.010.40
8.1.110.39
8.1.010.37
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

Source: reference/pcre/configure.xml · from the official PHP manual (php/doc-en)