Re: Re: cvs: php-src /ext/sockets sockets.c
| From: | Sascha Schumann | Date: | Tue, 08 Jul 2003 03:40:26 +0000 |
| Subject: | Re: Re: cvs: php-src /ext/sockets sockets.c | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3298@lists.php.net to get a copy of this message | ||
On Mon, 7 Jul 2003 pollita@php.net wrote:
> I thought about that on the way home. Perhaps the way to handle this is a
> pair of ifdefs (HAVE_GETADDRINFO and HAVE_GETHOSTBYNAME2) with a worst case
> fall-though to report failure.
gethostbyname2 is not thread-safe, and thus should not be
used by PHP. The *info family of functions is portable to
basically every IPv6 platform anyway, so we don't lose
functionality.
- Sascha