mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-26 10:02:15 +01:00
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
This commit is contained in:
committed by
Michael Grunder
parent
4ab69b1d16
commit
1f41da64fe
2
common.h
2
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;
|
||||
|
||||
Reference in New Issue
Block a user