Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

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 Compare December 27, 2021 13:44
@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 Compare December 27, 2021 16:13
@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 3 times, most recently from 2e9d35b to 652c020 Compare December 27, 2021 16:40
@carsonbot
Copy link

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 Compare December 28, 2021 10:05
@nicolas-grekas nicolas-grekas force-pushed the redis-windows branch 3 times, most recently from cae963c to 1bb14c3 Compare December 28, 2021 10:17
@nicolas-grekas nicolas-grekas merged commit 9d8638c into symfony:4.4 Dec 28, 2021
@nicolas-grekas nicolas-grekas deleted the redis-windows branch December 28, 2021 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants