Skip to content

Commit 51442dc

Browse files
committed
Add redis, igbinary extension for Windows
1 parent 17c27cb commit 51442dc

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

config/ext.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,14 @@
205205
},
206206
"igbinary": {
207207
"support": {
208-
"Windows": "wip",
209208
"BSD": "wip"
210209
},
211210
"type": "external",
212-
"source": "igbinary"
211+
"source": "igbinary",
212+
"ext-suggests": [
213+
"session",
214+
"apcu"
215+
]
213216
},
214217
"imagick": {
215218
"support": {
@@ -537,7 +540,6 @@
537540
},
538541
"redis": {
539542
"support": {
540-
"Windows": "wip",
541543
"BSD": "wip"
542544
},
543545
"type": "external",
@@ -547,7 +549,7 @@
547549
"session",
548550
"igbinary"
549551
],
550-
"lib-suggests": [
552+
"lib-suggests-unix": [
551553
"zstd",
552554
"liblz4"
553555
]

src/SPC/builder/extension/redis.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,12 @@ public function getUnixConfigureArg(): string
2323
}
2424
return $arg;
2525
}
26+
27+
public function getWindowsConfigureArg(): string
28+
{
29+
$arg = '--enable-redis';
30+
$arg .= $this->builder->getExt('session') ? ' --enable-redis-session' : ' --disable-redis-session';
31+
$arg .= $this->builder->getExt('igbinary') ? ' --enable-redis-igbinary' : ' --disable-redis-igbinary';
32+
return $arg;
33+
}
2634
}

src/globals/test-extensions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
2121
$extensions = match (PHP_OS_FAMILY) {
2222
'Linux', 'Darwin' => 'iconv',
23-
'Windows' => 'amqp,apcu,iconv',
23+
'Windows' => 'igbinary,redis,session',
2424
};
2525

2626
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
2727
$with_libs = match (PHP_OS_FAMILY) {
28-
'Linux', 'Darwin' => 'libcares',
28+
'Linux', 'Darwin' => '',
2929
'Windows' => '',
3030
};
3131

0 commit comments

Comments
 (0)