Skip to content

Commit ef82f90

Browse files
authored
Merge pull request #183 from stronk7/enable_redis_igbinary_serializer
Enable igbinary serializer for redis
2 parents 1e760c4 + 97cf6f7 commit ef82f90

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

root/tmp/setup/php-extensions.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ docker-php-ext-install -j$(nproc) ldap
5959

6060
# APCu, igbinary, Memcached, PCov, Redis, Solr, timezonedb, uuid
6161
# Note: Missing as of 2023-06-17: solr
62-
pecl install apcu igbinary memcached pcov redis timezonedb uuid
63-
docker-php-ext-enable apcu igbinary memcached pcov redis timezonedb uuid
62+
pecl install apcu igbinary memcached pcov timezonedb uuid
63+
docker-php-ext-enable apcu igbinary memcached pcov timezonedb uuid
6464

6565
echo 'apc.enable_cli = On' >> /usr/local/etc/php/conf.d/10-docker-php-ext-apcu.ini
6666

67+
# Install the redis extension enabling igbinary support.
68+
pecl install --configureoptions 'enable-redis-igbinary="yes"' redis
69+
docker-php-ext-enable redis
70+
6771
# Install, but do not enable, xdebug and xhprof.
6872
pecl install xdebug xhprof
6973

tests/fixtures/test.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
}
4141
setlocale(LC_TIME, 'en_AU.UTF-8');
4242

43+
if (!defined('\Redis::SERIALIZER_IGBINARY')) {
44+
$missing[] = 'redis support for igbinary serializer';
45+
}
46+
4347
if (php_sapi_name() === 'cli') {
4448
if (empty($missing)) {
4549
echo "OK\n";

0 commit comments

Comments
 (0)