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

修复当开启 Redis 序列化时,geoAdd() 会报错:ERR value is not a valid float #579

Merged
merged 3 commits into from Aug 21, 2023

Conversation

Yurunsoft
Copy link
Member

fix #578

这是 phpredis 扩展的一个陈年老bug,当启用 Redis 序列化时候,geoAdd() 的经纬度参数值会被序列化后传输。

官方认为这不算 BUG,所以这里做了一个兼容处理。

前人提问记录:phpredis/phpredis#1549

@Yurunsoft Yurunsoft added bug Something isn't working 2.1 2.0 labels Aug 21, 2023
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +1.34% 🎉

Comparison is base (a675f03) 64.10% compared to head (8035911) 65.45%.
Report is 3 commits behind head on 2.1.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.1     #579      +/-   ##
============================================
+ Coverage     64.10%   65.45%   +1.34%     
- Complexity    11222    11223       +1     
============================================
  Files           891      891              
  Lines         30565    30571       +6     
============================================
+ Hits          19594    20010     +416     
+ Misses        10971    10561     -410     
Files Changed Coverage Δ
src/Redis/RedisHandler.php 70.29% <100.00%> (+1.87%) ⬆️

... and 24 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Yurunsoft Yurunsoft merged commit 59f2238 into 2.1 Aug 21, 2023
28 of 30 checks passed
@Yurunsoft Yurunsoft deleted the fix-geoadd branch August 21, 2023 09:29
NHZEX pushed a commit to NHZEX/imi that referenced this pull request Oct 18, 2023
)

* 修复当开启 Redis 序列化时,geoAdd() 会报错:ERR value is not a valid float
phpredis 官方认为这不算 BUG:phpredis/phpredis#1549

* 在 Windows 上不测试 geoadd,因为 windows 版 redis 版本太低不支持 geo

* 更新文档
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 2.1 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redis geoadd 写入内容 ERR value is not a valid float
1 participant