Skip to content

Error when $auth = null and phpredis = 5.0 #26

@nvahalik

Description

@nvahalik

We are in the process of updating from PHP 8.1 to 8.2. We upgraded from v0.1.2 to v0.4.0 and released. (Still on PHP 8.1). All of our production servers started reporting the following message:

RedisException: Redis server 127.0.0.1:26379 went away.

From what I can tell the problem is this line here:

return new RedisSentinel($host, $port, $timeout, $persistent, $retryInterval, $readTimeout, $auth);

In our case, $auth = null. If I change that line to the old version where $auth is not passed in, it works as expected. Adding it back in causes the error to come back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions