@@ -471,6 +471,21 @@ extensions_available:
471
471
5.6 :
472
472
type : pecl
473
473
version : 2.2.7
474
+ 7.0 :
475
+ type : pecl
476
+ version : 4.0.5.2
477
+ 7.1 :
478
+ type : pecl
479
+ version : 4.0.5.2
480
+ 7.2 :
481
+ type : pecl
482
+ version : 4.0.5.2
483
+ 7.3 :
484
+ type : pecl
485
+ version : 4.0.5.2
486
+ 7.4 :
487
+ type : pecl
488
+ version : 4.0.5.2
474
489
all :
475
490
type : pecl
476
491
build_dep : [zlib1g-dev]
@@ -841,38 +856,24 @@ extensions_available:
841
856
5.6 :
842
857
type : pecl
843
858
version : 4.3.0
844
- 8.0 :
845
- type : git
846
- git_url : https://github.com/phpredis/phpredis
847
- git_ref : $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
848
- # TODO: This is a nasty work-around to fix current phpredis implementation for PHP 8.0
849
- command : |
850
- sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
851
- && sed -i'' 's|.*sctx->cb\.no_separation.*||g' library.c \
852
- && sed -i'' 's|.*sctx->cb\.no_separation.*||g' redis_array_impl.c \
853
- && sed -i'' 's|.*sctx->cb\.no_separation.*||g' cluster_library.c \
854
- && sed -i'' 's|.*->no_separation.*||g' redis_array_impl.c \
855
- && phpize \
856
- && ./configure --enable-redis \
857
- && make -j$(getconf _NPROCESSORS_ONLN) \
858
- && make install \
859
- 8.1 :
859
+ all :
860
860
type : git
861
861
git_url : https://github.com/phpredis/phpredis
862
862
git_ref : $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
863
- # TODO: This is a nasty work-around to fix current phpredis implementation for PHP 8.1
864
863
command : |
865
- sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
866
- && sed -i'' 's|.*sctx->cb\.no_separation.*||g' library.c \
867
- && sed -i'' 's|.*sctx->cb\.no_separation.*||g' redis_array_impl.c \
868
- && sed -i'' 's|.*sctx->cb\.no_separation.*||g' cluster_library.c \
869
- && sed -i'' 's|.*->no_separation.*||g' redis_array_impl.c \
870
- && phpize \
871
- && ./configure --enable-redis \
864
+ REDIS_ARGS=""; \
865
+ if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
866
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
867
+ fi; \
868
+ if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
869
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
870
+ fi; \
871
+ phpize \
872
+ && ./configure --enable-redis ${REDIS_ARGS} \
872
873
&& make -j$(getconf _NPROCESSORS_ONLN) \
873
874
&& make install \
874
- all :
875
- type : pecl
875
+ && rm -rf /usr/local/include/php/ext/igbinary \
876
+ && rm -rf /usr/local/include/php/ext/msgpack \
876
877
reflection :
877
878
already_avail : [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
878
879
rdkafka :
0 commit comments