Skip to content

Commit

Permalink
Fix #15 - Update to work with credis 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon authored and colinmollenhour committed Sep 26, 2017
1 parent 3898a28 commit b69bdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cm/RedisSession/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public function read($sessionId)

// Session can be read even if it was not locked by this pid!
$timeStart2 = microtime(true);
list($sessionData, $sessionWrites) = $this->_redis->hMGet($sessionId, array('data','writes'));
list($sessionData, $sessionWrites) = array_values($this->_redis->hMGet($sessionId, array('data','writes')));
$this->_log(sprintf("Data read for ID %s in %.5f seconds", $sessionId, (microtime(true) - $timeStart2)));
$this->_sessionWrites = (int) $sessionWrites;

Expand Down

0 comments on commit b69bdeb

Please sign in to comment.