diff --git a/config/ext.json b/config/ext.json index c521a61f1..b35ee1f86 100644 --- a/config/ext.json +++ b/config/ext.json @@ -205,11 +205,14 @@ }, "igbinary": { "support": { - "Windows": "wip", "BSD": "wip" }, "type": "external", - "source": "igbinary" + "source": "igbinary", + "ext-suggests": [ + "session", + "apcu" + ] }, "imagick": { "support": { @@ -537,7 +540,6 @@ }, "redis": { "support": { - "Windows": "wip", "BSD": "wip" }, "type": "external", @@ -547,7 +549,7 @@ "session", "igbinary" ], - "lib-suggests": [ + "lib-suggests-unix": [ "zstd", "liblz4" ] diff --git a/src/SPC/builder/extension/redis.php b/src/SPC/builder/extension/redis.php index 259a22c4d..bffc768ef 100644 --- a/src/SPC/builder/extension/redis.php +++ b/src/SPC/builder/extension/redis.php @@ -23,4 +23,12 @@ public function getUnixConfigureArg(): string } return $arg; } + + public function getWindowsConfigureArg(): string + { + $arg = '--enable-redis'; + $arg .= $this->builder->getExt('session') ? ' --enable-redis-session' : ' --disable-redis-session'; + $arg .= $this->builder->getExt('igbinary') ? ' --enable-redis-igbinary' : ' --disable-redis-igbinary'; + return $arg; + } } diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index d0f018bb1..ade822c6f 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -20,12 +20,12 @@ // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { 'Linux', 'Darwin' => 'iconv', - 'Windows' => 'amqp,apcu,iconv', + 'Windows' => 'igbinary,redis,session', }; // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`). $with_libs = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'libcares', + 'Linux', 'Darwin' => '', 'Windows' => '', };