diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-08-09 15:55:02 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-08-09 15:55:02 +0300 |
commit | 17b139d8417f2d5f8bf992425c7cb04cf7400818 (patch) | |
tree | 538444635ec8d3f55549a608ff78ec68e3448cd1 | |
parent | fbe0f804bc687ba465ca1c0fd474875e3f6768b5 (diff) |
Revert "Fix "No such file or directory" when connecting to ports >= 32768 (#1602)"
This reverts commit 1f41da64fec3f600c4c1da17e0416ca70d139a06.
-rw-r--r-- | common.h | 2 | ||||
-rw-r--r-- | redis.c | 4 |
2 files changed, 1 insertions, 5 deletions
@@ -248,7 +248,7 @@ typedef struct fold_item { typedef struct { php_stream *stream; zend_string *host; - unsigned short port; + short port; zend_string *auth; double timeout; double read_timeout; @@ -1004,10 +1004,6 @@ redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) port = 6379; } - if (port < 0) { - port = 0; - } - redis = PHPREDIS_GET_OBJECT(redis_object, object); /* if there is a redis sock already we have to remove it */ if (redis->sock) { |