Skip to content

[Cache] fix compatibility with redis extension 6.0.3+ #57885

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
Aug 7, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jul 30, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #57884
License MIT

see the differences in the redis.stub.php and redis_cluster.stub.php files at phpredis/phpredis@6.0.2...develop

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit c4a84a9 into symfony:6.4 Aug 7, 2024
8 of 10 checks passed
@xabbuh xabbuh deleted the issue-57884 branch August 7, 2024 09:39
@derrabus
Copy link
Member

I'm having a hard time merging this change from 7.1 to 7.2. Can you have a look, @xabbuh?

@xabbuh
Copy link
Member Author

xabbuh commented Aug 12, 2024

@derrabus done

This was referenced Aug 30, 2024
fabpot added a commit that referenced this pull request Sep 6, 2024
…edric-anne)

This PR was squashed before being merged into the 6.4 branch.

Discussion
----------

[Cache] Fix compatibility with Redis 6.1.0 pre-releases

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #57884
| License       | MIT

The solution provided in #57885 will fix the compatibility with the PHPRedis 6.1.0 release, but the issue persists on the pre-releases (for instance the [6.1.0RC1](https://pecl.php.net/package/redis/6.1.0RC1) version).
I propose to use the new signatures for any 6.1.0 version, including its pre-releases.

```php
version_compare('6.1.0RC1', '6.1.0', '>='); // false
version_compare('6.1.0RC1', '6.1.0-dev', '>='); // true
```

Commits
-------

9569a5f [Cache] Fix compatibility with Redis 6.1.0 pre-releases
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.

5 participants