Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #34668 [Cache] Make sure we get the correct number of values from…
… redis::mget() (thePanz) This PR was merged into the 3.4 branch. Discussion ---------- [Cache] Make sure we get the correct number of values from redis::mget() | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Redis might not be reachable when invoking `redis->mget($ids)`, the call returns `false` instead of an array. This change makes sure the return value is properly check, including the correctness of the parameters to invoke `array_combine($ids, $cacheValues);`. From the documentation: > Returns the combined array, FALSE if the number of elements for each array isn't equal. Commits ------- 685c36c [Cache] Make sure we get the correct number of values from redis::mget()
- Loading branch information