Home
last modified time | relevance | path

Searched refs:inet_pton (Results 1 – 14 of 14) sorted by relevance

/php-src/ext/standard/tests/network/
H A Dinet.phpt2 inet_ntop() & inet_pton() tests
16 var_dump(inet_pton(""));
17 var_dump(inet_pton(-1));
18 var_dump(inet_pton("abra"));
27 var_dump(bin2hex($packed = inet_pton($val)));
H A Dip2long_variation2_x64.phpt5 /* from man inet_pton :
10 if(PHP_OS == 'Darwin') die("skip - inet_pton behaves differently on Darwin");
11 if(PHP_OS == 'OpenBSD') die("skip - inet_pton accepts leading zeros on OpenBSD");
H A Dinet_ipv6.phpt2 inet_ntop() & inet_pton() IPv6 tests
28 $packed = inet_pton($address);
/php-src/ext/sockets/
H A Dsockaddr_conv.c25 if (inet_pton(AF_INET6, string, &tmp)) { in php_set_inet6_addr()
92 if (inet_pton(AF_INET, string, &tmp)) { in php_set_inet_addr()
/php-src/main/
H A Dnetwork.c244 if (!inet_pton(AF_INET, host, &in)) { in php_network_getaddresses()
549 if (inet_pton(AF_INET6, tmp, &in6->sin6_addr) > 0) {
557 if (inet_pton(AF_INET, tmp, &in4->sin_addr) > 0) {
858 if (inet_pton(AF_INET, bindto, &local_address.in4.sin_addr) == 1) {
866 if (inet_pton(AF_INET6, bindto, &local_address.in6.sin6_addr) == 1) {
H A Dfastcgi.c684 if (!inet_pton(AF_INET, host, &sa.sa_inet.sin_addr)) { in fcgi_listen()
784 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) { in fcgi_listen()
788 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { in fcgi_listen()
844 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) { in fcgi_set_allowed_clients()
848 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { in fcgi_set_allowed_clients()
/php-src/win32/
H A Dsendmail.c833 if (inet_pton(AF_INET, ent->h_name, &addr) == 1 || inet_pton(AF_INET6, ent->h_name, &addr6) == 1) in MailConnect()
835 if (inet_pton(AF_INET, ent->h_name, &addr) == 1) in MailConnect()
/php-src/ext/standard/
H A Ddns.c181 if (inet_pton(AF_INET6, ip, &sa6.sin6_addr)) { in php_gethostbyaddr()
188 } else if (inet_pton(AF_INET, ip, &sa4.sin_addr)) { in php_gethostbyaddr()
H A Dbasic_functions.c570 PHP_FUNCTION(inet_pton) in PHP_FUNCTION() argument
592 ret = inet_pton(af, address, buffer); in PHP_FUNCTION()
613 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION()
H A Dbasic_functions.stub.php2230 function inet_pton(string $ip): string|false {}
H A Dbasic_functions_arginfo.h2496 ZEND_FUNCTION(inet_pton);
3094 ZEND_FE(inet_pton, arginfo_inet_pton)
/php-src/
H A Dconfigure.ac595 AC_CHECK_FUNC([inet_pton],, [AC_MSG_FAILURE([Required inet_pton not found.])])
/php-src/ext/openssl/
H A Dxp_ssl.c469 if (inet_pton(AF_INET6, subject_name, &ipv6)) { in php_openssl_matches_san_list()
/php-src/sapi/litespeed/
H A Dlsapilib.c2691 if (!inet_pton(AF_INET, p, &((struct sockaddr_in *)pAddr)->sin_addr)) in LSAPI_ParseSockAddr()

Completed in 76 milliseconds