Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

PHP 7 and redis session caching: Session object destruction failed. #36

Closed
aimfeld opened this issue Mar 23, 2016 · 4 comments · Fixed by #46 or #66
Closed

PHP 7 and redis session caching: Session object destruction failed. #36

aimfeld opened this issue Mar 23, 2016 · 4 comments · Fixed by #46 or #66

Comments

@aimfeld
Copy link

aimfeld commented Mar 23, 2016

We have been caching sessions with Redis in our Zend Framework 2 project (using zend-session 2.5.2) on PHP 5.6.

After upgrading from PHP 5.6 to PHP 7.0.4, we get PHP warnings like session_regenerate_id(): Session object destruction failed. ID: user (path: tcp://host:port?weight=1&timeout=3) and session_destroy(): Session object destruction failed when users are logged out.

When discussing the issue on stackoverflow here, it was suggested that this might be a bug in zend-session.

@sandrokeil
Copy link
Contributor

Are you using the dev branch of the Redis PHP extension, because there is no "stable" version released yet for PHP 7? How have you installed the Redis PHP extension?

@aimfeld
Copy link
Author

aimfeld commented Mar 24, 2016

I just checked, in our dev environment (laravel homestead), we are using the phpredis 2.2.8-devphp7, and we don't get these warnings. In staging (platform.sh), we are using phpredis 2.2.5, which seems not to be fully compatible with PHP 7. I wasn't aware that there is no stable phpredis version for PHP 7, feel free to close this issue.

@aimfeld
Copy link
Author

aimfeld commented Feb 7, 2017

We have upgraded to PHP 7.1, zend-session: 2.7.3, and are running phpredis 3.1.0-rc1, but this problem still occurs. I think this issue should be reopened...

weierophinney added a commit that referenced this issue Jun 19, 2017
@aimfeld
Copy link
Author

aimfeld commented Jun 29, 2017

As of zend-session 2.8.0, the issues seems to be resolved, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants