diff options
Diffstat (limited to 'main/network.c')
-rw-r--r-- | main/network.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index cf96982e6b..8a7f3da006 100644 --- a/main/network.c +++ b/main/network.c @@ -223,7 +223,9 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal TSR struct in_addr in; if (!inet_aton(host, &in)) { - /* XXX NOT THREAD SAFE */ + /* XXX NOT THREAD SAFE + * (but it *is* thread safe under win32) + */ host_info = gethostbyname(host); if (host_info == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "php_network_getaddresses: gethostbyname failed"); |