-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels