Topic: REMI-Test, EL6, php-fpm 5.4.5, php-pecl-apc-3.1.11 - pcre_exec error

Hello -

On one of our development machines in which we're testing code against PHP 5.4.x, we upgraded to the latest of everything yesterday to solve the APC dom_import_simplexml problem (https://bugs.php.net/bug.php?id=61956).  Along with this upgrade came php 5.4.5, and with that, we encountered an error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0

Environment is CentOS 6.x 64-bit, nginx webserver, using php-fpm 5.4.5, php-pecl-apc 3.1.11.  This error causes the APC module to be disabled, breaking our code that depends on it.  The research I did on this error indicates that this is a compilation problem.

Any ideas?

Re: REMI-Test, EL6, php-fpm 5.4.5, php-pecl-apc-3.1.11 - pcre_exec error

I did forget to mention that downgrading all php modules to the previous versions (except php-pecl-apc) made the problem go away.  So the following sets of packages for PHP are working for us:

php-pear-1.9.4-3.el6.remi.noarch
php-pecl-geoip-1.0.8-2.el6.remi.x86_64
php-pecl-apc-3.1.11-1.el6.remi.x86_64
php-common-5.4.4-1.el6.remi.x86_64
php-mysql-5.4.4-1.el6.remi.x86_64
php-xmlrpc-5.4.4-1.el6.remi.x86_64
php-pecl-imagick-3.1.0-0.2.RC2.el6.remi.x86_64
php-pecl-memcache-3.0.6-4.el6.remi.x86_64
php-pecl-xdebug-2.2.1-1.el6.remi.x86_64
php-pdo-5.4.4-1.el6.remi.x86_64
php-5.4.4-1.el6.remi.x86_64
php-gd-5.4.4-1.el6.remi.x86_64
php-mcrypt-5.4.4-1.el6.remi.x86_64
php-xml-5.4.4-1.el6.remi.x86_64
php-pecl-xhprof-0.9.2-5.el6.remi.1.x86_64
php-cli-5.4.4-1.el6.remi.x86_64
php-fpm-5.4.4-1.el6.remi.x86_64

While if I do an upgrade to the following:

php.x86_64                      5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-cli.x86_64                  5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-common.x86_64               5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-fpm.x86_64                  5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-gd.x86_64                   5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-mcrypt.x86_64               5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-mysql.x86_64                5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-pdo.x86_64                  5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-xml.x86_64                  5.4.5-1.el6.remi               REMI6-TEST-x86_64
php-xmlrpc.x86_64               5.4.5-1.el6.remi               REMI6-TEST-x86_64

The error occurs.

Re: REMI-Test, EL6, php-fpm 5.4.5, php-pecl-apc-3.1.11 - pcre_exec error

I'm currently AFK, so, I won't be able to look on this issue before monday.

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

Re: REMI-Test, EL6, php-fpm 5.4.5, php-pecl-apc-3.1.11 - pcre_exec error

Probably an answer:
During the update to php 5.4.5, I switch to bundled pcre library instead of system one (7.8 is too old and have some issues).

A simple rebuild of APC seems the solution.

Please try php 5.4.5 with php-pecl-apc-3.1.11-1.el6.remi.1 (new build).

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