diff options
author | Owen Smith <owen.rl.smith@gmail.com> | 2019-07-17 22:04:05 +0300 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2019-07-17 22:04:05 +0300 |
commit | 1f41da64fec3f600c4c1da17e0416ca70d139a06 (patch) | |
tree | 6db9168ca2052002bc8ad2a7cda75f5e30cbeb25 /common.h | |
parent | 4ab69b1d163677f9abdc3f69f76ed49c83a816c3 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |