diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-09-25 13:26:40 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-09-25 13:26:40 +0300 |
commit | d7b6e9d4bb47cc1dd4c3db5ff168bc7fc1c056ac (patch) | |
tree | 2ec19ce30f306c44c52e6ec440d5966b95a4cab1 /library.c | |
parent | 3d8b85259c47bc9fac69a6a0a20dc1d5a35c4a3a (diff) |
Revert "Use negative port number to indicate unix socket"
This reverts commit 3d8b85259c47bc9fac69a6a0a20dc1d5a35c4a3a.
Diffstat (limited to 'library.c')
-rw-r--r-- | library.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1807,7 +1807,7 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_sock) schema = estrndup(address, pos - address); address = pos + sizeof("://") - 1; } - if (redis_sock->port < 0) { + if (redis_sock->port < 1) { host_len = snprintf(host, sizeof(host), "unix://%s", address); usocket = 1; } else { |