Topic: pcre version for PHP 8.1, epel 7 vs epel 8

While upgrading from CentOS 7 to Rocky Linux 8, I noticed that the used pcre version for PHP 8.1 was lower.

On CentOS 7 we have:

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.39 2021-10-29
PCRE Unicode Version => 14.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)

While on Rocky Linux 8 we have:

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.32 2018-09-10
PCRE Unicode Version => 11.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)

Is this intentional?
Based on https://www.php.net/manual/en/pcre.installation.php
It should be 10.39 for PHP 8.1, ideally, to match with the bundled PCRE library.

Re: pcre version for PHP 8.1, epel 7 vs epel 8

Steps to replicate:
Running

docker run -it --entrypoint sh centos:7 -c "yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && yum --enablerepo=remi-php81 install -y php-cli && php -i | grep PCRE"

will print:

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.39 2021-10-29
PCRE Unicode Version => 14.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)

Re: pcre version for PHP 8.1, epel 7 vs epel 8

While running

docker run -it --entrypoint sh rockylinux:8 -c "yum install -y http://rpms.famillecollet.com/enterprise/remi-release-8.rpm && dnf module enable -y php:remi-8.1 && yum install -y php-cli && php -i | grep PCRE"

will print:

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.32 2018-09-10
PCRE Unicode Version => 11.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)

Re: pcre version for PHP 8.1, epel 7 vs epel 8

On EL-7, the bundled version is used as version 10.23 is too old (10.30 is required)

En Fedora, EL-8 and EL-9 system version is used

- EL-8: 10.32
- EL-9: 10.40
- Fedora 38+: 10.42

> Is this intentional?

Yes.

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi