10000 [HttpFoundation][Session] memcached connection should not be closed · symfony/symfony@66d7dcc · GitHub
[go: up one dir, main page]

Skip to content

Commit 66d7dcc

Browse files
committed
[HttpFoundation][Session] memcached connection should not be closed
1 parent fc0a09a commit 66d7dcc

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function open($savePath, $sessionName)
7171
*/
7272
public function close()
7373
{
74-
return $this->memcache->close();
74+
return true;
7575
}
7676

7777
/**

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ public function testOpenSession()
5050

5151
public function testCloseSession()
5252
{
53-
$this->memcache
54-
->expects($this->once())
55-
->method('close')
56-
->will($this->returnValue(true))
57-
;
58-
5953
$this->assertTrue($this->storage->close());
6054
}
6155

0 commit comments

Comments
 (0)
0