Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable igbinary serializer for redis #183

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions root/tmp/setup/php-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ docker-php-ext-install -j$(nproc) ldap

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

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

# Install the redis extension enabling igbinary support.
pecl install --configureoptions 'enable-redis-igbinary="yes"' redis
docker-php-ext-enable redis

# Install, but do not enable, xdebug and xhprof.
pecl install xdebug xhprof

Expand Down
4 changes: 4 additions & 0 deletions tests/fixtures/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
}
setlocale(LC_TIME, 'en_AU.UTF-8');

if (!defined('\Redis::SERIALIZER_IGBINARY')) {
$missing[] = 'redis support for igbinary serializer';
}

if (php_sapi_name() === 'cli') {
if (empty($missing)) {
echo "OK\n";
Expand Down