Skip to content

Commit 4d2b176

Browse files
João Nogueiranicolas-grekas
authored andcommitted
[Cache] Fix dealing with ext-redis' multi/exec returning a bool
1 parent f26878a commit 4d2b176

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,11 @@ private function pipeline(\Closure $generator, $redis = null): \Generator
529529

530530
if (!$redis instanceof \Predis\ClientInterface && 'eval' === $command && $redis->getLastError()) {
531531
$e = new \RedisException($redis->getLastError());
532-
$results = array_map(function ($v) use ($e) { return false === $v ? $e : $v; }, $results);
532+
$results = array_map(function ($v) use ($e) { return false === $v ? $e : $v; }, (array) $results);
533+
}
534+
535+
if (\is_bool($results)) {
536+
return;
533537
}
534538

535539
foreach ($ids as $k => $id) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy