8000 [Cache] \Redis::mget() can return bool, Redis6Proxy::mget() doesn't account for that · Issue #52668 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Cache] \Redis::mget() can return bool, Redis6Proxy::mget() doesn't account for that #52668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dkarlovi opened this issue Nov 21, 2023 · 3 comments

Comments

@dkarlovi
Copy link
Contributor

Symfony version(s) affected

6.3.5

Description

Redis::mget can return false when no keys are provided. phpredis/phpredis#1810

This is annoying because the signature says mget(): \Redis|array, but it's actually mget(): \Redis|array|false.

Redis6Proxy::mget has the correct signature, but it doesn't handle the possible false.

How to reproduce

Set up PHPRedis v6 and do Redis6Proxy::mget([])

Possible Solution

Return [] if false.

Additional Context

IMO this is a bug in the module, but it's a bug since 2020.

@alexandre-daubois
Copy link
Member

May be closed by phpredis/phpredis#2422

@sirian
Copy link
Contributor
sirian commented Apr 4, 2024

false also returned in case of errors like noAUTH Authentication required. Tested with phpredis 6.0.2

@xabbuh
Copy link
Member
xabbuh commented Apr 4, 2024

we now account for this in the proxy since #54410

@xabbuh xabbuh closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
0