Support redis with PHP 8
parent
b3c4a238c1
commit
3c272ff906
|
@ -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
|
||||||
|
|
|
@ -1239,30 +1239,43 @@ installPECLModule() {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
redis)
|
redis)
|
||||||
# enable igbinary serializer support?
|
if test $PHP_MAJMIN_VERSION -ge 800; then
|
||||||
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin='yes\n' || installPECLModule_stdin='no\n'
|
installPECLModule_src="$(getPackageSource https://codeload.github.com/phpredis/phpredis/tar.gz/develop)"
|
||||||
# enable lzf compression support?
|
cd -- "$installPECLModule_src"
|
||||||
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
|
installPECLModule_cmd='./configure'
|
||||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_cmd="$installPECLModule_cmd --enable-redis-igbinary"
|
||||||
installPECLModule_actual="$1-4.3.0"
|
phpize
|
||||||
|
$installPECLModule_cmd
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
cd - >/dev/null
|
||||||
|
installPECLModule_manuallyInstalled=1
|
||||||
else
|
else
|
||||||
installPECLModule_machine=$(gcc -dumpmachine)
|
# enable igbinary serializer support?
|
||||||
if ! test -e /usr/include/zstd.h || ! test -e /usr/lib/libzstd.so -o -e "/usr/lib/$installPECLModule_machine/libzstd.so"; then
|
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin='yes\n' || installPECLModule_stdin='no\n'
|
||||||
installPECLModule_zstdVersion=1.4.4
|
# enable lzf compression support?
|
||||||
installPECLModule_zstdVersionMajor=$(echo $installPECLModule_zstdVersion | cut -d. -f1)
|
|
||||||
rm -rf /tmp/src/zstd
|
|
||||||
mv "$(getPackageSource https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-$installPECLModule_zstdVersion.tar.gz)" /tmp/src/zstd
|
|
||||||
cd /tmp/src/zstd
|
|
||||||
make V=0 -j$(nproc) lib
|
|
||||||
cp -f lib/libzstd.so "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion"
|
|
||||||
ln -sf "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion" "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersionMajor"
|
|
||||||
ln -sf "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion" "/usr/lib/$installPECLModule_machine/libzstd.so"
|
|
||||||
ln -sf /tmp/src/zstd/lib/zstd.h /usr/include/zstd.h
|
|
||||||
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/zstd.h"
|
|
||||||
cd - >/dev/null
|
|
||||||
fi
|
|
||||||
# enable zstd compression support?
|
|
||||||
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
|
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
|
||||||
|
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||||
|
installPECLModule_actual="$1-4.3.0"
|
||||||
|
else
|
||||||
|
installPECLModule_machine=$(gcc -dumpmachine)
|
||||||
|
if ! test -e /usr/include/zstd.h || ! test -e /usr/lib/libzstd.so -o -e "/usr/lib/$installPECLModule_machine/libzstd.so"; then
|
||||||
|
installPECLModule_zstdVersion=1.4.4
|
||||||
|
installPECLModule_zstdVersionMajor=$(echo $installPECLModule_zstdVersion | cut -d. -f1)
|
||||||
|
rm -rf /tmp/src/zstd
|
||||||
|
mv "$(getPackageSource https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-$installPECLModule_zstdVersion.tar.gz)" /tmp/src/zstd
|
||||||
|
cd /tmp/src/zstd
|
||||||
|
make V=0 -j$(nproc) lib
|
||||||
|
cp -f lib/libzstd.so "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion"
|
||||||
|
ln -sf "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion" "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersionMajor"
|
||||||
|
ln -sf "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion" "/usr/lib/$installPECLModule_machine/libzstd.so"
|
||||||
|
ln -sf /tmp/src/zstd/lib/zstd.h /usr/include/zstd.h
|
||||||
|
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/zstd.h"
|
||||||
|
cd - >/dev/null
|
||||||
|
fi
|
||||||
|
# enable zstd compression support?
|
||||||
|
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
solr)
|
solr)
|
||||||
|
|
Loading…
Reference in New Issue