А почему бы не воспользоваться репо REMI? И весь PHP с модулями утянуть оттуда.
Вот php7.1 в контейнере на основе CentOS7:
[root@96ff1bf1e5b5 /]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
[root@96ff1bf1e5b5 /]# php -v
PHP 7.1.1 (cli) (built: Jan 18 2017 11:37:34) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
[root@96ff1bf1e5b5 /]# rpm -qa | grep memcache
memcached-1.4.34-1.el7.remi.x86_64
php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el7.remi.7.1.x86_64
[root@96ff1bf1e5b5 /]# yum info php-pecl-memcache
.......
Installed Packages
Name : php-pecl-memcache
Arch : x86_64
Version : 3.0.9
Release : 0.7.20161124gitdf7735e.el7.remi.7.1
Size : 292 k
Repo : installed
From repo : remi-php71
Summary : Extension to work with the Memcached caching daemon
URL :
pecl.php.net/package/memcache
License : PHP
Description : Memcached is a caching daemon designed especially for
: dynamic web applications to decrease database load by
: storing objects in memory.
:
: This extension allows you to work with memcached through
: handy OO and procedural interfaces.
:
: Memcache can be used as a PHP session handler.
:
: Package built for PHP 7.1.