Skip to content
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

Problem with setSaveHandler function #13

Open
chinkung opened this issue Feb 21, 2014 · 0 comments
Open

Problem with setSaveHandler function #13

chinkung opened this issue Feb 21, 2014 · 0 comments

Comments

@chinkung
Copy link

Hello,

I have a problem when I try to use setSaveHandler() to use Memcache as sessions handler

Here is the code

require 'MemcacheSASL.php';
$m = new MemcacheSASL;
$m->addServer('host', 11211);
$m->setSaslAuthData('user', 'password');
$m->setSaveHandler();

session_start();
$_SESSION['test'] = 'test1';
echo $_SESSION['test'];

It's doesn't print 'test1' as expected and there is an error in the log file

Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.8 with Suhosin-Patch configured
PHP Fatal error: Using $this when not in object context in MemcacheSASL.php on line 450

Could you please help check and fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant