RE: [PHP-DEV] Patch that corrects non blocked socket reading on W IN32
| From: | Sascha Schumann | Date: | Tue, 16 Jan 2001 18:05:35 +0000 |
| Subject: | RE: [PHP-DEV] Patch that corrects non blocked socket reading on W IN32 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44251@lists.php.net to get a copy of this message | ||
On Tue, 16 Jan 2001, Christophe Thibault wrote:
> Actually, it's not that dangerous as the redefinition of errno only occurs
> in fsock.c and errno is only used in fsock.c for retrieving socket errors...
Something like this is more safer:
#ifdef PHP_WIN32
#define php_sock_errno() WSAGetLastError()
#else
#define php_sock_errno() errno
#endif
- Sascha