Topic: Is it possible to rebuild pecl-memcached against latest libmemcached
Hello
Is it possible to provide us with updated version of `php72-php-pecl-memcached-3.0.4-2.el7.remi.x86_64` which is being rebuild against the latest version of `libmemecahed` v1.0.18?
My question is triggered because I've stumble upon the following issue:
warning: memcached::touch(): using touch command with binary protocol is not recommended with libmemcached versions below 1.0.18, please use ascii protocol or upgrade libmemcached"
The issue is triggered using:
- CentOS Linux release 7.5.1804
- php72-php-pecl-memcached-3.0.4-2.el7.remi.x86_64
- php72-php-pecl-igbinary-2.0.8-1.el7.remi.x86_64
- Memcached Server v1.5.11 (also tested with older v1.4.39)
I've manage to tackle the problem installing an updated libmemcached from this external repo 'dl.marmotte.net/rpms/redhat/el7/x86_64/libmemcached-1.0.18-6.el7/" and then recompile the memcached.so against the new library using:
yum install zlib-devel.x86_64 cyrus-sasl-devel php72-php-pecl-igbinary-devel
curl dl.marmotte.net/rpms/redhat/el7/x86_64/libmemcached-1.0.18-6.el7/libmemcached-devel-1.0.18-6.el7.x86_64.rpm -o libmemcached-devel-1.0.18-6.el7.x86_64.rpm
rpm -i libmemcached-devel-1.0.18-6.el7.x86_64.rpm
curl pecl.php.net/get/memcached-3.0.4.tgz -o memcached-3.0.4.tgz
tar xzvf memcached-3.0.4.tgz
cd memcached-3.0.4
phpize
./configure --enable-memcached-igbinary
make
make test
mv /opt/remi/php72/root/usr/lib64/php/modules/memcached.so /opt/remi/php72/root/usr/lib64/php/modules/memcached.so_default
cp ./modules/memcached.so /opt/remi/php72/root/usr/lib64/php/modules/memcached.so
So I understand clearly that the problem is caused because the Centos 7 is providing an outdated version of libmemcached (v1.0.16 to be more precise). My intention to start this discussion is to help someone that is experiencing the same issue + to help improve the quality of the repo with the following proposal:
- consider adding libmemcached v1.0.18 as part of the Remi repo
- consider rebuild php72-php-pecl-memcached-3.0.4-2.el7.remi.x86_64 against the latest libmemcached and if possible do the rebuild for the rest of supported PHP versions
- I know how much work will cost such change and I want to be clear that this is only a proposal for discussion and it is not a request,plea,insistence or any other form of ungrateful wish.
- Please excuse me if there is already a solution for this issue, because I'm still unable to find such (here in the forum or in the open net).
Thanks in advance
PS - If needed any further information, I will be more then happy to provide it.