-
Notifications
You must be signed in to change notification settings - Fork 100
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
Memcache extension can't read from memcached #23
Comments
Hi, can you use memcache outside of the extension? We use the extension with PHP 7.1 without any problems. |
Hi,
yes I'm using it with php5.6.6 with the pecl-memcache extension 3.0.8
…________________________________
Da: Tomas Srnka <notifications@github.com>
Inviato: mercoledì 19 aprile 2017 16.28
A: websupport-sk/pecl-memcache
Cc: nicolacontu; Author
Oggetto: Re: [websupport-sk/pecl-memcache] Memcache extension can't read from memcached (#23)
Hi, can you use memcache outside of the extension? We use the extension with PHP 7.1 without any problems.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#23 (comment)>, or mute the thread</~https://github.com/notifications/unsubscribe-auth/AMWZkTVo5Cdr4pN0geSScRbOH1BrHJkDks5rxhoNgaJpZM4NAaw0>.
|
Having same issue here when using native session handler via php.ini directives and calling
However when using On PHP 7.0.17 and same configs
|
Same here
|
I'm experiencing the same issue with PHP 7.1.7 and the latest commit of the memcache extension: e702b5f Error message is the same:
Has anyone found a work-around yet? I'm able to use the same version of the extension on PHP 7.0.x without any problems. |
I just switched to memcahed extension
…________________________________
Da: Ben Ramsey <notifications@github.com>
Inviato: giovedì 17 agosto 2017 01:14
A: websupport-sk/pecl-memcache
Cc: nicolacontu; Author
Oggetto: Re: [websupport-sk/pecl-memcache] Memcache extension can't read from memcached (#23)
I'm experiencing the same issue with PHP 7.1.7 and the latest commit of the memcache extension: e702b5f<e702b5f>
Error message is the same:
session_start(): Failed to read session data: memcache (path: tcp://127.0.0.1:11211)
Has anyone found a work-around yet? I'm able to use the same extension on PHP 7.0.x without any problems.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#23 (comment)>, or mute the thread</~https://github.com/notifications/unsubscribe-auth/AMWZkYSIn4jkXU0Ti55yMgMI4QW6d76Vks5sY3fvgaJpZM4NAaw0>.
|
I was able to create a simple reproducible version of this, using Docker. The repository is here: /~https://github.com/ramsey/pecl-memcache-issue-23 To run it to see the 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
See the repository for more information. I hope this helps! 😄 |
@tomassrnka, have you been able to take a look at my reproduction steps yet? |
Since the php 7+ session module now expects a string for a valid response the error appears when the memcache extension returns that the key doesn't exist for a fresh/uninitialised session. For me kind of works (haven't fully tested though (for example with binary protocol)) this small change:
|
@Roze yep that fixes the problem ... thx |
@Roze could be better to open a pull request. |
@remicollet Thanks for the patch! |
Fix websupport-sk#23 Failed to read session data with 7.1/7.2
Fix #23 Failed to read session data with 7.1/7.2
I was getting the following error on PHP 7.2 with debian php-memcache 3.0.9:
I manually installed the latest php memcache version 4.0.4 in my dockerfile and this resolved the issue.
|
add patch from websupport-sk/pecl-memcache#23
Hello
I've installed php 7.1.1 and the extensions is version 3.0.9-dev
When I try to do a session_start I get :
Warning: session_start(): Failed to read session data: memcache (path: tcp://127.0.0.1:11211) in /usr/local/httpd-2.4.25/logs/test.php on line 1
array(0) {
}
This the script I used :
This is my php.ini
session.save_handler = memcache
session.save_path = '127.0.0.1:11211'
memcache.lock_timeout = 60
extension=memcache.so
Can you please check?
Thanks
The text was updated successfully, but these errors were encountered: