Skip to content
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

[Messenger] fix Redis support on 32b arch #44807

Merged
merged 1 commit into from Dec 28, 2021

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Dec 27, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #43860
License MIT
Doc PR -

It took me a while to fix it, but PR is now ready. We have to use rawCommand() to work around phpredis casting scores to floats and ignoring any overflow/loss of precision in the process. Passing the score as a string is required here (note that Redis always stores numbers as 64b floats, even when running on x86)

@carsonbot carsonbot added this to the 4.4 milestone Dec 27, 2021
@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 4 times, most recently from 67bd238 to 5af63a1 Dec 27, 2021
@nicolas-grekas nicolas-grekas changed the title [Cache] fix Redis support on 32b arch [Messenger] fix Redis support on 32b arch Dec 27, 2021
@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 10 times, most recently from 50bc130 to 9299842 Dec 27, 2021
@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 3 times, most recently from 2e9d35b to 652c020 Dec 27, 2021
@carsonbot
Copy link

@carsonbot carsonbot commented Dec 28, 2021

Hey!

I think @LukeTowers has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 4 times, most recently from ab6cf95 to 29c8349 Dec 28, 2021
@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 3 times, most recently from cae963c to 1bb14c3 Dec 28, 2021
@nicolas-grekas nicolas-grekas merged commit 9d8638c into symfony:4.4 Dec 28, 2021
9 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the redis-windows branch Dec 28, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants