# endif
struct addrinfo hints, *res, *sai;
#else
- char *tmp_host_buf = NULL;
- struct hostent tmp_host_info;
struct hostent *host_info;
struct in_addr in;
#endif
host_info = NULL;
errno = E2BIG;
} else {
- host_info = php_network_gethostbyname(host, &tmp_host_info, &tmp_host_buf);
+ host_info = php_network_gethostbyname(host);
}
if (host_info == NULL) {
if (error_string) {
((struct sockaddr_in *)*sap)->sin_addr = in;
sap++;
n = 1;
- if (tmp_host_buf) {
- efree(tmp_host_buf);
- }
#endif
*sap = NULL;