diff options
author | Wez Furlong <wez@php.net> | 2003-02-21 14:06:55 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-02-21 14:06:55 +0000 |
commit | c1bdf163edfa617f174153ae3078e565028fac4c (patch) | |
tree | 6f16a9a710d643336ef52540e41a90f843a878ee /main/network.c | |
parent | 7d256c1ae13effe624602bf87eab15d54b76046b (diff) | |
download | php-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.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"); |