DebianPHP7.4-php7.3(Debian10)的PHP memcached包

DebianPHP7.4-php7.3(Debian10)的PHP memcached包,debian,memcached,apt,deb,php-7.4,Debian,Memcached,Apt,Deb,Php 7.4,安装PHP7.4后: apt-get install libapache2-mod-php7.4 php-common php-geoip php-igbinary php-msgpack php-redis php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-gmp php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readl

安装PHP7.4后:

apt-get install libapache2-mod-php7.4 php-common php-geoip php-igbinary php-msgpack php-redis php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-gmp php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-soap php7.4-sqlite3 php7.4-xml php7.4-zip
apt-get install php-memcached
我尝试安装php memcached,但安装了旧版本(PHP7.3):

apt-get install libapache2-mod-php7.4 php-common php-geoip php-igbinary php-msgpack php-redis php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-gmp php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-soap php7.4-sqlite3 php7.4-xml php7.4-zip
apt-get install php-memcached

《新和平协议》的安装:

php memcached php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-phpdbg php7.3-readline

。。。 我们可以看到,这个扩展需要的不是Php7.4,而是Php7.3

cat/etc/apt/sources.list.d/php.list

deb https://packages.sury.org/php/ buster main
deb http://ftp2.fr.debian.org/debian buster main non-free contrib
deb-src http://ftp2.fr.debian.org/debian buster main non-free contrib

deb http://security.debian.org/ buster/updates main contrib non-free
deb-src http://security.debian.org/ buster/updates main contrib non-free
cat/etc/apt/sources.列表

deb https://packages.sury.org/php/ buster main
deb http://ftp2.fr.debian.org/debian buster main non-free contrib
deb-src http://ftp2.fr.debian.org/debian buster main non-free contrib

deb http://security.debian.org/ buster/updates main contrib non-free
deb-src http://security.debian.org/ buster/updates main contrib non-free
如何强制PHPmemcached为PHP7.4安装

我尝试了php7.4-memcached,但它不起作用 模块中的/etc/php/7.4中没有文件夹/文件

我的代码不工作:未捕获错误:找不到类“Memcached”


Debian 10(和sid)包php memcached 3.1.3依赖于“phpapi-20180731”(PHP7.3):

只有新版本与php 7.4兼容:

目前packages.sury只提供php memcached 3.1.3


现在它可以工作了,packages.sury升级memcached package