@@ -38,6 +38,8 @@ extensions_enabled:
38
38
- ioncube
39
39
- json
40
40
- ldap
41
+ - lz4
42
+ - lzf
41
43
- mcrypt
42
44
- memcache
43
45
- msgpack
@@ -66,6 +68,7 @@ extensions_enabled:
66
68
- pdo_sqlsrv
67
69
- pgsql
68
70
- psr
71
+ - zstd
69
72
- redis
70
73
- sqlite3
71
74
- sqlsrv
@@ -475,6 +478,35 @@ extensions_available:
475
478
pre : ln -s /usr/lib/$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)/libldap* /usr/lib/
476
479
configure : --with-ldap --with-ldap-sasl
477
480
build_dep : [libldap2-dev, libsasl2-dev]
481
+ lz4 :
482
+ disabled : [5.2, 5.3, 5.4, 5.5, 5.6]
483
+ all :
484
+ type : git
485
+ git_url : https://github.com/kjdev/php-ext-lz4
486
+ git_ref : $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1)
487
+ configure : --enable-lz4 --with-lz4-includedir=/usr
488
+ build_dep : [liblz4-dev]
489
+ run_dep : [liblz4-1]
490
+ lzf :
491
+ disabled : [5.2, 5.3, 5.4, 5.5, 5.6]
492
+ all :
493
+ type : pecl
494
+ build_dep : [liblzf-dev]
495
+ run_dep : [liblzf1]
496
+ 7.2 :
497
+ type : pecl
498
+ build_dep : []
499
+ run_dep : []
500
+ 7.1 :
501
+ type : pecl
502
+ version : 1.6.8
503
+ build_dep : []
504
+ run_dep : []
505
+ 7.0 :
506
+ type : pecl
507
+ version : 1.6.8
508
+ build_dep : []
509
+ run_dep : []
478
510
mcrypt :
479
511
disabled : [8.1, 8.2]
480
512
all :
@@ -938,60 +970,137 @@ extensions_available:
938
970
5.4 :
939
971
type : pecl
940
972
version : 0.5.1
973
+ zstd :
974
+ disabled : [5.2, 5.3, 5.4, 5.5, 5.6]
975
+ all :
976
+ type : git
977
+ git_url : https://github.com/kjdev/php-ext-zstd
978
+ git_ref : $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1)
979
+ configure : --enable-zstd --with-libzstd
980
+ build_dep : [libzstd-dev]
981
+ run_dep : [libzstd1]
982
+ 7.0 :
983
+ type : pecl
984
+ build_dep : [libzstd-dev]
985
+ run_dep : [libzstd1]
941
986
redis :
942
987
disabled : []
943
988
all :
944
989
type : git
945
990
git_url : https://github.com/phpredis/phpredis
946
- git_ref : $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
991
+ git_ref : $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1)
992
+ pre : |
993
+ if [ -f /usr/include/liblzf/lzf.h ]; then \
994
+ ln -s /usr/include/liblzf/lzf.h /usr/include/; \
995
+ fi \
947
996
command : |
948
997
REDIS_ARGS=""; \
949
- if [ -d "/usr/local/include/php/ext/ igbinary" ] ; then \
998
+ if php -m | grep -q " igbinary"; then \
950
999
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
951
1000
fi; \
952
- if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
1001
+ if php -m | grep -q "lz4"; then \
1002
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-lz4 --with-liblz4=/usr"; \
1003
+ fi; \
1004
+ if php -m | grep -q "lzf"; then \
1005
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-lzf --with-liblzf=/usr"; \
1006
+ fi; \
1007
+ if php -m | grep -q "msgpack"; then \
953
1008
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
954
1009
fi; \
1010
+ if php -m | grep -q "zstd"; then \
1011
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-zstd"; \
1012
+ fi; \
955
1013
phpize \
956
1014
&& ./configure --enable-redis ${REDIS_ARGS} \
957
1015
&& make -j$(getconf _NPROCESSORS_ONLN) \
958
1016
&& make install \
959
- 8.2 :
1017
+ build_dep :
1018
+ - liblz4-dev
1019
+ - liblzf-dev
1020
+ - libzstd-dev
1021
+ run_dep :
1022
+ - liblz4-1
1023
+ - liblzf1
1024
+ - libzstd1
1025
+ 7.2 :
960
1026
type : git
961
1027
git_url : https://github.com/phpredis/phpredis
962
- git_ref : $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/ [.0-9]+$' | sed 's|.*tags/||g ' | sort -V | tail -1)
1028
+ git_ref : $(git tag | grep -E '^ [.0-9]+$' | sort -V | tail -1)
963
1029
command : |
964
1030
REDIS_ARGS=""; \
965
- if [ -d "/usr/local/include/php/ext/ igbinary" ] ; then \
1031
+ if php -m | grep -q " igbinary"; then \
966
1032
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
967
1033
fi; \
968
- if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
1034
+ if php -m | grep -q "lz4"; then \
1035
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-lz4 --with-liblz4=/usr"; \
1036
+ fi; \
1037
+ if php -m | grep -q "msgpack"; then \
969
1038
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
970
1039
fi; \
1040
+ if php -m | grep -q "zstd"; then \
1041
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-zstd"; \
1042
+ fi; \
971
1043
phpize \
972
1044
&& ./configure --enable-redis ${REDIS_ARGS} \
973
- && sed -i'' 's/ops->hash_init(ctx);/ops->hash_init(ctx, NULL);/g' library.c \
974
- && sed -i'' 's/ops->hash_init(ctx);/ops->hash_init(ctx, NULL);/g' redis_array_impl.c \
975
1045
&& make -j$(getconf _NPROCESSORS_ONLN) \
976
1046
&& make install \
977
- 8.1 :
1047
+ build_dep :
1048
+ - liblz4-dev
1049
+ - libzstd-dev
1050
+ run_dep :
1051
+ - liblz4-1
1052
+ - libzstd1
1053
+ 7.1 :
1054
+ type : git
1055
+ git_url : https://github.com/phpredis/phpredis
1056
+ git_ref : $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1)
1057
+ command : |
1058
+ REDIS_ARGS=""; \
1059
+ if php -m | grep -q "igbinary"; then \
1060
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
1061
+ fi; \
1062
+ if php -m | grep -q "lz4"; then \
1063
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-lz4 --with-liblz4=/usr"; \
1064
+ fi; \
1065
+ if php -m | grep -q "msgpack"; then \
1066
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
1067
+ fi; \
1068
+ if php -m | grep -q "zstd"; then \
1069
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-zstd"; \
1070
+ fi; \
1071
+ phpize \
1072
+ && ./configure --enable-redis ${REDIS_ARGS} \
1073
+ && make -j$(getconf _NPROCESSORS_ONLN) \
1074
+ && make install \
1075
+ build_dep :
1076
+ - liblz4-dev
1077
+ - libzstd-dev
1078
+ run_dep :
1079
+ - liblz4-1
1080
+ - libzstd1
1081
+ 7.0 :
978
1082
type : git
979
1083
git_url : https://github.com/phpredis/phpredis
980
- git_ref : $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/ [.0-9]+$' | sed 's|.*tags/||g ' | sort -V | tail -1)
1084
+ git_ref : $(git tag | grep -E '^ [.0-9]+$' | sort -V | tail -1)
981
1085
command : |
982
1086
REDIS_ARGS=""; \
983
- if [ -d "/usr/local/include/php/ext/ igbinary" ] ; then \
1087
+ if php -m | grep -q " igbinary"; then \
984
1088
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
985
1089
fi; \
986
- if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
1090
+ if php -m | grep -q "lz4"; then \
1091
+ REDIS_ARGS="${REDIS_ARGS} --enable-redis-lz4 --with-liblz4=/usr"; \
1092
+ fi; \
1093
+ if php -m | grep -q "msgpack"; then \
987
1094
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
988
1095
fi; \
989
1096
phpize \
990
1097
&& ./configure --enable-redis ${REDIS_ARGS} \
991
- && sed -i'' 's/ops->hash_init(ctx);/ops->hash_init(ctx, NULL);/g' library.c \
992
- && sed -i'' 's/ops->hash_init(ctx);/ops->hash_init(ctx, NULL);/g' redis_array_impl.c \
993
1098
&& make -j$(getconf _NPROCESSORS_ONLN) \
994
1099
&& make install \
1100
+ build_dep :
1101
+ - liblz4-dev
1102
+ run_dep :
1103
+ - liblz4-1
995
1104
5.6 :
996
1105
type : pecl
997
1106
version : 4.3.0
0 commit comments