Home
last modified time | relevance | path

Searched refs:bindto (Results 1 – 4 of 4) sorted by relevance

/PHP-7.2/ext/standard/tests/network/
H A Dbug74764.phpt2 Bug #74764 IPv6 bindto fails with stream_socket_client()
12 ['socket' => array('bindto' => "[::]:0")]
17 array('socket' => array('bindto' => "0.0.0.0:0"))
/PHP-7.2/main/
H A Dnetwork.c782 int *error_code, char *bindto, unsigned short bindport, long sockopts argument
827 if (!bindto || strchr(bindto, ':')) {
851 if (bindto) {
856 if (strchr(bindto,':')) {
866 if (!inet_aton(bindto, &in4->sin_addr)) {
867 php_error_docref(NULL, E_WARNING, "Invalid IP Address: %s", bindto);
881 if (inet_pton(AF_INET6, bindto, &in6->sin6_addr) < 1) {
882 php_error_docref(NULL, E_WARNING, "Invalid IP Address: %s", bindto);
889 …php_error_docref(NULL, E_WARNING, "failed to bind to '%s:%d', system said: %s", bindto, bindport, …
H A Dphp_network.h250 int *error_code, char *bindto, unsigned short bindport, long sockopts
/PHP-7.2/main/streams/
H A Dxp_socket.c694 char *host = NULL, *bindto = NULL; in php_tcp_sockop_connect() local
742bindto = parse_ip_address_ex(Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval), &bindport, xparam->want_err… in php_tcp_sockop_connect()
777 bindto, in php_tcp_sockop_connect()
788 if (bindto) { in php_tcp_sockop_connect()
789 efree(bindto); in php_tcp_sockop_connect()

Completed in 11 milliseconds