[6.x] Only prepend scheme to PhpRedis host when necessary#34017
[6.x] Only prepend scheme to PhpRedis host when necessary#34017taylorotwell merged 1 commit intolaravel:6.xfrom ryzr:hotfix/php-redis-connector
Conversation
In cases where $options['scheme'] is set, but $options['host'] already has the scheme prepended, the resulting host will be scheme://scheme://host
|
So I suppose the question is whether we want to support this. Do we take the position that you including the scheme in the host file is invalid syntax? |
Good point. I'm actually prepending the tls:// scheme to env vars in Terraform config to get this working in the first place. It makes sense to me to specify host and scheme distinctively. For me, upgrading from v7.25.0 to v7.26.0 was a breaking change (hence the PR), but curious how common this configuration was, if it wasn't what was intended anyway. |
|
@ryzr I understand that in your config you have set the @driesvints I'm fine with this PR, as it addresses cases like this, which users have defined the But configuring redis like this is not really correct, and it would certainly not work with the If folks need to use different connectors between environments, they could use the |
|
Maybe it's best that we fix this for 6.x & 7.x and then revert it again for 8.x? @taylorotwell what are your thoughts? |
|
@driesvints I agree, let's merge this. But we should be more clear about the correct configuration in the docs. I'll submit a PR to the |
|
I see no huge need to revert this after merging as long as our docs is correct. |
Please see #34016