1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00

# zeev is god

This commit is contained in:
David Croft
2000-07-22 04:23:41 +00:00
parent 89153d9c05
commit a5a9a4928b
+1 -1
View File
@@ -827,7 +827,7 @@ PHPAPI int php_set_sock_blocking(int socketd, int block)
#ifdef PHP_WIN32
/* with ioctlsocket, a non-zero sets nonblocking, a zero sets blocking */
flags = block ? 0 : 1;
flags = !block;
if (ioctlsocket(socketd,FIONBIO,&flags)==SOCKET_ERROR){
php_error(E_WARNING,"%s",WSAGetLastError());
ret = FALSE;