Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-08-09 15:55:02 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-08-09 15:55:02 +0300
commit17b139d8417f2d5f8bf992425c7cb04cf7400818 (patch)
tree538444635ec8d3f55549a608ff78ec68e3448cd1
parentfbe0f804bc687ba465ca1c0fd474875e3f6768b5 (diff)
Revert "Fix "No such file or directory" when connecting to ports >= 32768 (#1602)"
This reverts commit 1f41da64fec3f600c4c1da17e0416ca70d139a06.
-rw-r--r--common.h2
-rw-r--r--redis.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/common.h b/common.h
index 0cb75173..45e8768f 100644
--- a/common.h
+++ b/common.h
@@ -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;
diff --git a/redis.c b/redis.c
index 52206909..4a13a7d4 100644
--- a/redis.c
+++ b/redis.c
@@ -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) {