Support redis with PHP 8

pull/171/head
Michele Locati 2020-09-21 15:06:43 +02:00
parent b3c4a238c1
commit 3c272ff906
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
2 changed files with 36 additions and 23 deletions

View File

@ -53,7 +53,7 @@ pthreads 5.5 5.6 7.0
raphf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
rdkafka 5.5 5.6 7.0 7.1 7.2 7.3 7.4
recode 5.5 5.6 7.0 7.1 7.2 7.3
redis 5.5 5.6 7.0 7.1 7.2 7.3 7.4
redis 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
shmop 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
snuffleupagus 7.0 7.1 7.2 7.3 7.4
snmp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0

View File

@ -1239,6 +1239,18 @@ installPECLModule() {
fi
;;
redis)
if test $PHP_MAJMIN_VERSION -ge 800; then
installPECLModule_src="$(getPackageSource https://codeload.github.com/phpredis/phpredis/tar.gz/develop)"
cd -- "$installPECLModule_src"
installPECLModule_cmd='./configure'
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_cmd="$installPECLModule_cmd --enable-redis-igbinary"
phpize
$installPECLModule_cmd
make -j$(nproc)
make install
cd - >/dev/null
installPECLModule_manuallyInstalled=1
else
# enable igbinary serializer support?
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin='yes\n' || installPECLModule_stdin='no\n'
# enable lzf compression support?
@ -1264,6 +1276,7 @@ installPECLModule() {
# enable zstd compression support?
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
fi
fi
;;
solr)
if test $PHP_MAJMIN_VERSION -le 506; then