Skip to content

Conversation

@artonge
Copy link
Contributor

@artonge artonge commented Nov 25, 2021

When checking the presence of the redis.cluster property in the config, the in_array function can return true when the config contains a 0 property as (int)'redis.cluster' === 0.

Puting aside the reason behind the presence of a 0 property, strict comparisons are always safer, and prevent weird bugs.

Fixes: #28609

Doc: https://www.php.net/manual/en/function.in-array.php

@artonge artonge added bug feature: caching Related to our caching system: scssCacher, jsCombiner... 3. to review Waiting for reviews labels Nov 25, 2021
@artonge
Copy link
Contributor Author

artonge commented Nov 25, 2021

/backport to stable22

@artonge
Copy link
Contributor Author

artonge commented Nov 25, 2021

/backport to stable23

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: caching Related to our caching system: scssCacher, jsCombiner...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redis cluster missing seed

4 participants