Skip to content

Commit 284de9a

Browse files
committed
Add the Redis extension
1 parent 8389e2f commit 284de9a

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

php-82/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ RUN set -xe; \
179179
# Install extensions
180180
# We can install extensions manually or using `pecl`
181181
RUN pecl install APCu
182+
RUN pecl install redis-6.2.0
182183

183184

184185
# ---------------------------------------------------------------

php-83/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ RUN set -xe; \
179179
# Install extensions
180180
# We can install extensions manually or using `pecl`
181181
RUN pecl install APCu
182+
RUN pecl install redis-6.2.0
182183

183184

184185
# ---------------------------------------------------------------

php-84/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ RUN set -xe; \
178178
# Install extensions
179179
# We can install extensions manually or using `pecl`
180180
RUN pecl install APCu
181+
RUN pecl install redis-6.2.0
181182

182183

183184
# ---------------------------------------------------------------

php-85/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ RUN set -xe; \
178178
# Install extensions
179179
# We can install extensions manually or using `pecl`
180180
RUN pecl install APCu
181+
RUN pecl install redis-6.2.0
181182

182183

183184
# ---------------------------------------------------------------

tests/test_2_extensions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
'intl' => class_exists(\Collator::class),
147147
'apcu' => function_exists('apcu_add'),
148148
'soap' => class_exists(\SoapClient::class),
149+
'redis' => class_exists(\Redis::class),
149150
];
150151
foreach ($extensionsDisabledByDefault as $extension => $test) {
151152
if ($test) {

tests/test_3_manual_enabling_extensions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
'intl' => class_exists(\Collator::class),
77
'apcu' => function_exists('apcu_add'),
88
'soap' => class_exists(\SoapClient::class),
9+
'redis' => class_exists(\Redis::class),
910
];
1011

1112
$extensionDir = ini_get('extension_dir');

tests/test_3_manual_extensions.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
extension=intl
22
extension=apcu
33
extension=soap
4+
extension=redis

0 commit comments

Comments
 (0)