Sitelet https://github.com/phpredis/phpredis/commit/17b139d8
Skip to content

Commit 17b139d

Browse files
committed
Revert "Fix "No such file or directory" when connecting to ports >= 32768 (#1602)"
This reverts commit 1f41da6.
1 parent fbe0f80 commit 17b139d

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ typedef struct fold_item {
248248
typedef struct {
249249
php_stream *stream;
250250
zend_string *host;
251-
unsigned short port;
251+
short port;
252252
zend_string *auth;
253253
double timeout;
254254
double read_timeout;

‎redis.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,10 +1004,6 @@ redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
10041004
port = 6379;
10051005
}
10061006

1007-
if (port < 0) {
1008-
port = 0;
1009-
}
1010-
10111007
redis = PHPREDIS_GET_OBJECT(redis_object, object);
10121008
/* if there is a redis sock already we have to remove it */
10131009
if (redis->sock) {

0 commit comments

Comments
 (0)