Merge pull request #171 from mlocati/redis-php8

Support redis with PHP 8
pull/172/head
Michele Locati 2020-09-21 15:13:41 +02:00 committed by GitHub
commit 15fef3fe71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 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 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 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 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 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 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 fi
;; ;;
redis) 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? # enable igbinary serializer support?
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin='yes\n' || installPECLModule_stdin='no\n' php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin='yes\n' || installPECLModule_stdin='no\n'
# enable lzf compression support? # enable lzf compression support?
@ -1264,6 +1276,7 @@ installPECLModule() {
# enable zstd compression support? # enable zstd compression support?
installPECLModule_stdin="${installPECLModule_stdin}yes\n" installPECLModule_stdin="${installPECLModule_stdin}yes\n"
fi fi
fi
;; ;;
solr) solr)
if test $PHP_MAJMIN_VERSION -le 506; then if test $PHP_MAJMIN_VERSION -le 506; then