Skip to content

Commit 56a0166

Browse files
committed
fixup! Reopen sessions if we need to write to them instead of keeping them open
1 parent 42e83cb commit 56a0166

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Session/Memory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ public function getId(): string {
109109
* Helper function for PHPUnit execution - don't use in non-test code
110110
*/
111111
public function reopen(): bool {
112+
$reopened = $this->sessionClosed;
112113
$this->sessionClosed = false;
114+
return $reopened;
113115
}
114116

115117
/**

0 commit comments

Comments
 (0)