Dump extension_loaded('redis')
returns true but I get
Class "Redis" not found
I have a simple docker file like
FROM php:7.1.32-fpm-alpine3.10
ENV PHPREDIS_VERSION 5.2.2
RUN docker-php-source extract && \
curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz && \
tar xfz /tmp/redis.tar.gz && \
rm -r /tmp/redis.tar.gz && \
mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis && \
docker-php-ext-install redis
ENTRYPOINT ["php-fpm"]
You need to sign in to view this answers
Leave feedback about this