diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fb3de6a3..d64ff15d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Yii Framework 2 redis extension Change Log ----------------------- - Bug #37: Fixed detection of open socket (mirocow) +- Bug #46: Fixed bug to execute session_regenerate_id in PHP 7.0 (githubjeka) - Chg #14: Added missing `BLPOP` to `$redisCommands` (samdark) 2.0.4 May 10, 2015 diff --git a/Session.php b/Session.php index 70a74b7dc..0ed3a30f0 100644 --- a/Session.php +++ b/Session.php @@ -116,7 +116,7 @@ public function readSession($id) { $data = $this->redis->executeCommand('GET', [$this->calculateKey($id)]); - return $data === false ? '' : $data; + return $data === false || $data === null ? '' : $data; } /**