Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2247d0b

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

File tree

1 file changed

+6
-1
lines changed
Filter options

1 file changed

+6
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php
+6-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.