mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Fix bug #74764 and add a test case
This commit is contained in:
commit
6b5e7e6b42
3 changed files with 29 additions and 0 deletions
|
@ -839,6 +839,9 @@ php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short
|
|||
int local_address_len = 0;
|
||||
|
||||
if (sa->sa_family == AF_INET) {
|
||||
if (strchr(bindto,':')) {
|
||||
goto skip_bind;
|
||||
}
|
||||
struct sockaddr_in *in4 = emalloc(sizeof(struct sockaddr_in));
|
||||
|
||||
local_address = (struct sockaddr*)in4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue