yii2-redis icon indicating copy to clipboard operation
yii2-redis copied to clipboard

Confusing "new" TLS scheme option vs old `useSSL`

Open particleflux opened this issue 5 months ago • 0 comments

2.0.18 added support for scheme tls in f96b872fa646308ab2f11721a7d35c713a234621

That adapts the connection string to tls:// instead of tcp://.

BUT we already had useSSL. Imho there's a bunch of problems with having two options for kinda the same thing.

  • what happens if I set scheme to tls and useSSL to true? will the stream_socket_client() magically enable TLS but the useSSL do it again via stream_socket_enable_crypto()? Or will it throw an error?
  • useSSL => true should probably also switch the scheme in the connectionString, as that is a public getter/property
  • it's just plain confusing with two options

particleflux avatar Jun 06 '25 08:06 particleflux