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:
authorOwen Smith <owen.rl.smith@gmail.com>2019-07-17 22:04:05 +0300
committerMichael Grunder <michael.grunder@gmail.com>2019-07-17 22:04:05 +0300
commit1f41da64fec3f600c4c1da17e0416ca70d139a06 (patch)
tree6db9168ca2052002bc8ad2a7cda75f5e30cbeb25 /common.h
parent4ab69b1d163677f9abdc3f69f76ed49c83a816c3 (diff)
Fix "No such file or directory" when connecting to ports >= 32768 (#1602)
* Fix `connect` for port numbers >=32768: Since 5.0.0, using a high enough port number gives a "No such file or directory" error, because type casts treat high ports as -ve which awkwardly triggers the unix-socket-path behaviour. * clean up guard condition
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 45e8768f..0cb75173 100644
--- a/common.h
+++ b/common.h
@@ -248,7 +248,7 @@ typedef struct fold_item {
typedef struct {
php_stream *stream;
zend_string *host;
- short port;
+ unsigned short port;
zend_string *auth;
double timeout;
double read_timeout;