Skip to content

Commit

Permalink
[Bugfix] MemcachedSessionHandler::close() must close connection
Browse files Browse the repository at this point in the history
  • Loading branch information
grachevko committed Jan 6, 2019
1 parent 7f04e55 commit b77e76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ public function __construct(\Memcached $memcached, array $options = array())
*/
public function close()
{
return true;
return $this->memcached->quit();
}

/**
Expand Down
Expand Up @@ -43,6 +43,7 @@ protected function setUp()
}

$this->memcached = $this->getMockBuilder('Memcached')->getMock();
$this->memcached->method('quit')->willReturn(true);
$this->storage = new MemcachedSessionHandler(
$this->memcached,
array('prefix' => self::PREFIX, 'expiretime' => self::TTL)
Expand Down

0 comments on commit b77e76a

Please sign in to comment.