Skip to content

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#6575-redis-setitems-…
Browse files Browse the repository at this point in the history
…last-item-overwritten-fixes-zendframework/zf2#6324' into develop

Close zendframework/zendframework#6575
Close zendframework/zendframework#6324
Forward port zendframework/zendframework#6575
Forward port zendframework/zendframework#6324
  • Loading branch information
Ocramius committed Nov 22, 2014
2 parents 3379845 + a2c28f9 commit 9ae191a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Storage/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ protected function internalGetItems(array & $normalizedKeys)
$redis = $this->getRedisResource();

$namespacedKeys = array();
foreach ($normalizedKeys as & $normalizedKey) {
foreach ($normalizedKeys as $normalizedKey) {
$namespacedKeys[] = $this->namespacePrefix . $normalizedKey;
}

Expand Down Expand Up @@ -254,8 +254,8 @@ protected function internalSetItems(array & $normalizedKeyValuePairs)
$ttl = $this->getOptions()->getTtl();

$namespacedKeyValuePairs = array();
foreach ($normalizedKeyValuePairs as $normalizedKey => & $value) {
$namespacedKeyValuePairs[$this->namespacePrefix . $normalizedKey] = & $value;
foreach ($normalizedKeyValuePairs as $normalizedKey => $value) {
$namespacedKeyValuePairs[$this->namespacePrefix . $normalizedKey] = $value;
}
try {
if ($ttl > 0) {
Expand Down

0 comments on commit 9ae191a

Please sign in to comment.