Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

ramsey/pecl-memcache-issue-23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pecl-memcache Issue #23

This repository reproduces the issue described in websupport-sk/pecl-memcache#23.

In short, on PHP 7.1, when using memcache as the session.save_handler, the following warning occurs when calling session_start():

Warning: session_start(): Failed to read session data: memcache (path: tcp://127.0.0.1:11211)

The same code and settings does not result in this warning on PHP 7.0.

Running the Example

This example uses Docker and Docker Compose to build two images and run two containers (one for PHP 7.0 and one for PHP 7.1). Both are identical, expect for the version of PHP used.

git clone /~https://github.com/ramsey/pecl-memcache-issue-23
cd pecl-memcache-issue-23/
docker-compose up

Now, the two containers should be running, and you can open the following in your browser to verify:

To test the session_start() issue and see the warning, open the following:

See the scripts in docker/ for an understanding of how everything is configured and running.

About

A reproducible example to show the issue at /~https://github.com/websupport-sk/pecl-memcache/issues/23

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published