Skip to content

Commit 1a50f12

Browse files
committed
Merge pull request #46 from githubjeka/patch-1
Fix bug: session_regenerate_id(): Failed to create(read) session ID: user (path: )
2 parents 2ec0b75 + fb83a88 commit 1a50f12

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Yii Framework 2 redis extension Change Log
55
-----------------------
66

77
- Bug #37: Fixed detection of open socket (mirocow)
8+
- Bug #46: Fixed bug to execute session_regenerate_id in PHP 7.0 (githubjeka)
89
- Chg #14: Added missing `BLPOP` to `$redisCommands` (samdark)
910

1011
2.0.4 May 10, 2015

Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function readSession($id)
116116
{
117117
$data = $this->redis->executeCommand('GET', [$this->calculateKey($id)]);
118118

119-
return $data === false ? '' : $data;
119+
return $data === false || $data === null ? '' : $data;
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)