From: Wez Furlong Date: Fri, 21 Feb 2003 14:06:55 +0000 (+0000) Subject: Add comment about thread-safety of gethostbyname on win32. X-Git-Tag: RELEASE_0_5~830 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1bdf163edfa617f174153ae3078e565028fac4c;p=php Add comment about thread-safety of gethostbyname on win32. Set the correct path to the win32 config.h file in the .dsp file. --- 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"); diff --git a/win32/php4dllts.dsp b/win32/php4dllts.dsp index a9b193fea6..d3bdb9cf24 100644 --- a/win32/php4dllts.dsp +++ b/win32/php4dllts.dsp @@ -270,7 +270,7 @@ SOURCE=..\ext\standard\aggregation.h # End Source File # Begin Source File -SOURCE=..\ext\standard\config.w32.h +SOURCE=..\main\config.w32.h # End Source File # Begin Source File @@ -1876,6 +1876,10 @@ SOURCE=..\ext\standard\php_string.h # End Source File # Begin Source File +SOURCE=..\ext\standard\php_sunfuncs.h +# End Source File +# Begin Source File + SOURCE=..\ext\standard\php_syslog.h # End Source File # Begin Source File @@ -1900,10 +1904,6 @@ SOURCE=..\ext\standard\sha1.h # End Source File # Begin Source File -SOURCE=..\ext\standard\php_sunfuncs.h -# End Source File -# Begin Source File - SOURCE=..\ext\standard\type.h # End Source File # Begin Source File