RE: [PHP-DEV] Patch that corrects non blocked socket reading on W IN32

From: Date: Tue, 16 Jan 2001 18:07:54 +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-44253@lists.php.net to get a copy of this message
Yep! Andi At 07:05 PM 1/16/2001 +0100, Sascha Schumann wrote:
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#44253) next »