10000 Pass through false return from SessionHandler::gc() · symfony/symfony@2247d0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2247d0b

Browse files
committed
Pass through false return from SessionHandler::gc()
1 parent 50573ef commit 2247d0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ public function destroy($sessionId)
8686
#[\ReturnTypeWillChange]
8787
public function gc($maxlifetime)
8888
{
89-
return (int) $this->handler->gc($maxlifetime);
89+
$result = $this->handler->gc($maxlifetime);
90+
if (false === $result) {
91+
return false;
92+
}
93+
94+
return (int) $result;
9095
}
9196

9297
/**

0 commit comments

Comments
 (0)
0