Skip to content

Commit

Permalink
Revert "Fix "No such file or directory" when connecting to ports >= 3…
Browse files Browse the repository at this point in the history
…2768 (#1602)"

This reverts commit 1f41da6.
  • Loading branch information
yatsukhnenko committed Aug 9, 2019
1 parent fbe0f80 commit 17b139d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 17b139d

Please sign in to comment.