summaryrefslogtreecommitdiff
path: root/main/network.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-21 14:06:55 +0000
committerWez Furlong <wez@php.net>2003-02-21 14:06:55 +0000
commitc1bdf163edfa617f174153ae3078e565028fac4c (patch)
tree6f16a9a710d643336ef52540e41a90f843a878ee /main/network.c
parent7d256c1ae13effe624602bf87eab15d54b76046b (diff)
downloadphp-git-c1bdf163edfa617f174153ae3078e565028fac4c.tar.gz
Add comment about thread-safety of gethostbyname on win32.
Set the correct path to the win32 config.h file in the .dsp file.
Diffstat (limited to 'main/network.c')
-rw-r--r--main/network.c4
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");