Topic: PHP 5.5.38 different version of PCRE engine
Hello,
it seems the that PHP 5.5.38 has been compiled with different version of PCRE engine (Perl Compatible Regular Expressions) in Enterprise Linux 7 and Enterprise Linux 6 repository. I found out this when i installed PHP 5.5.38 on Centos 6.5 and Centos 7. And look into PHP info - it shows different version of PCRE engine on Centos 6.5 (8.38 2015-11-23) and Centos 7 (8.32 2012-11-30). According php-config --configure-options PHP binaries in Enterprise Linux 7 repo has been compiled with flag --with-pcre-regex=/usr which allows to use external PCRE library. This can cause some small issues as the bundled version of PCRE in PHP (7.0.3 / 5.6.18 / 5.5.32) is 8.38. At this moment i know that the different version can affect for example this code:
echo preg_replace('/[^[:print:]]/u', '', 'ČEZ');
In the PHP compiled with PCRE 8.38 it prints "ČEZ", but in the PHP with 8.32 just "EZ".