Skip to content

Problem with setSaveHandler function #13

@chinkung

Description

@chinkung

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions