Skip to content

Commit 91f2fda

Browse files
committed
Add support for phpredis
1 parent 62f80c7 commit 91f2fda

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

compile.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ EXT_RDKAFKA_VERSION="6.0.4"
4545
EXT_ZSTD_VERSION="0.15.2"
4646
EXT_GRPC_VERSION="1.76.0"
4747
EXT_VANILLAGENERATOR_VERSION="abd059fd2ca79888aab3b9c5070d83ceea55fada"
48+
EXT_REDIS_VERSION="6.3.0"
4849

4950
EXT_IGBINARY_VERSION_PHP85="3.2.17RC1"
5051

@@ -1472,6 +1473,8 @@ get_github_extension "rdkafka" "$EXT_RDKAFKA_VERSION" "arnaud-lb" "php-rdkafka"
14721473

14731474
get_github_extension "zstd" "$EXT_ZSTD_VERSION" "kjdev" "php-ext-zstd"
14741475

1476+
get_github_extension "redis" "$EXT_REDIS_VERSION" "phpredis" "phpredis"
1477+
14751478
cafile=""
14761479
if [[ "$COMPILE_TARGET" == "mac"* ]]; then
14771480
cafile="/etc/ssl/cert.pem"
@@ -1730,6 +1733,8 @@ $HAVE_MYSQLI \
17301733
--enable-opcache=$HAVE_OPCACHE \
17311734
--enable-opcache-jit=$HAVE_OPCACHE_JIT \
17321735
--enable-igbinary \
1736+
--disable-redis-session \
1737+
--enable-redis \
17331738
--with-crypto \
17341739
--enable-recursionguard \
17351740
--enable-xxhash \

windows-compile-vs.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ $PHP_VANILLAGENERATOR_VER="2.1.7"
3636
$PHP_LIBKAFKA_VER="6.0.4"
3737
$PHP_ZSTD_VER="0.15.2"
3838
$PHP_GRPC_VER="1.76.0"
39+
$PHP_REDIS_VER="6.3.0"
3940

4041
$PHP_IGBINARY_VER_PHP85="3.2.17RC1"
4142

@@ -693,6 +694,7 @@ function download-php-extensions {
693694
get-github-extension "rdkafka" $PHP_LIBKAFKA_VER "arnaud-lb" "php-rdkafka"
694695
get-github-extension "zstd" $PHP_ZSTD_VER "kjdev" "php-ext-zstd"
695696
get-github-extension "grpc" $PHP_GRPC_VER "larryTheCoder" "php-grpc"
697+
get-github-extension "phpredis" $PHP_REDIS_VER "phpredis" "phpredis"
696698

697699
# Vanilla generator depend on this folder, the compiler will not be able
698700
# to find these dependencies if the folder name were to change
@@ -786,6 +788,7 @@ sdk-command "configure^`
786788
--enable-opcache^`
787789
--enable-opcache-jit=$PHP_JIT_ENABLE_ARG^`
788790
--enable-phar^`
791+
--enable-redis=shared^`
789792
--enable-vanillagenerator=shared^`
790793
--enable-zstd^`
791794
--enable-snappy^`
@@ -880,6 +883,7 @@ append-file-utf8 "extension=php_chunkutils2.dll" $php_ini
880883
append-file-utf8 "extension=php_igbinary.dll" $php_ini
881884
append-file-utf8 "extension=php_leveldb.dll" $php_ini
882885
append-file-utf8 "extension=php_crypto.dll" $php_ini
886+
append-file-utf8 "extension=php_redis.dll" $php_ini
883887
append-file-utf8 "extension=php_libdeflate.dll" $php_ini
884888
append-file-utf8 "extension=php_encoding.dll" $php_ini
885889
append-file-utf8 "igbinary.compact_strings=0" $php_ini

0 commit comments

Comments
 (0)