Skip to content

Commit

Permalink
fixed zendframework/zendframework#6324: Redis::setItems: the last ite…
Browse files Browse the repository at this point in the history
…m is overwritten
  • Loading branch information
marc-mabe authored and Ocramius committed Nov 22, 2014
1 parent c705b8e commit a2c28f9
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 @@ -172,7 +172,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 @@ -252,8 +252,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 a2c28f9

Please sign in to comment.