Trying to figure out why PHP 7.1 and PHP 7.0 won't play nice with the Redis extension
PHP Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.docker
web/html
README.md
docker-compose.yml

README.md

Docker with PHP and Redis example

While migrating from PHP 5.6 to PHP 7.1 we stumbled on a critical issue regarding our session management. Apparently PHP 7.1 triggers an error in the redis extension version 3.1.0.

Warning: session_start(): Failed to read session data: redis (path: tcp://localhost:6379)

This repository contains the source code to simulate the issue using Docker containers.

See also the YouTube video describing the issue.

Watch on YouTube

Solution

When downgrading the php extension for Redis to 3.0.0. the problem was resolved for PHP 7.1 (see #3b9b211). Unfortunately it's not resolved for PHP 7.0.