[Bugfix] MemcachedSessionHandler::close() must close connection

This commit is contained in:
Konstantin Grachev 2019-01-05 00:04:29 +03:00
parent 7f04e55856
commit 38a9d8b6a3
No known key found for this signature in database
GPG Key ID: 18FB61C93615F874
2 changed files with 7 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class MemcachedSessionHandler extends AbstractSessionHandler
*/
public function close()
{
return true;
return $this->memcached->quit();
}
/**

View File

@ -63,6 +63,12 @@ class MemcachedSessionHandlerTest extends TestCase
public function testCloseSession()
{
$this->memcached
->expects($this->once())
->method('quit')
->will($this->returnValue(true))
;
$this->assertTrue($this->storage->close());
}