mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-09 17:41:14 +00:00
Fix phpredis for PHP 8.0
This commit is contained in:
@@ -811,21 +811,14 @@ extensions_available:
|
||||
5.6:
|
||||
type: pecl
|
||||
version: 4.3.0
|
||||
7.4:
|
||||
type: git
|
||||
git_url: https://github.com/phpredis/phpredis
|
||||
git_ref: $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
|
||||
command: |
|
||||
phpize \
|
||||
&& ./configure --enable-redis \
|
||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
8.0:
|
||||
type: git
|
||||
git_url: https://github.com/phpredis/phpredis
|
||||
git_ref: $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
|
||||
# TODO: This is a nasty work-around to fix current phpredis implementation for PHP 8.0
|
||||
command: |
|
||||
phpize \
|
||||
sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
|
||||
&& phpize \
|
||||
&& ./configure --enable-redis \
|
||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
|
||||
Reference in New Issue
Block a user