My hosting provides redis connection with a unix socket. When I set:
$config[‘session_redis_server’] = ‘/home/user/ea-podman.d/ea-redis62.user.01/redis.sock’;
I get the error:
Redis::connect(): Passing null to parameter #2 ($port) of type int is deprecated
app/Tygh/Backend/Session/Redis.php, line: 183
Does the redis implementation not support sockets or am I missing something?
The session cache is working with that, but cache_backend is throwing an error:
PHP Deprecated
Message
unserialize(): Passing null to parameter #1 ($data) of type string is deprecated
Error at
app/addons/hybrid_auth/func.php, line: 200
I used the diff like this:
patch -p1 < redis_socket_fix.diff
patching file app/Tygh/Backend/Cache/Redis.php
patching file app/Tygh/Backend/Session/Redis.php
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 70 with fuzz 2.
The patch error might just be lack of CRLF at the end, I copied direct from your post. The redis.php files are showing the modification.