diff options
-rw-r--r-- | ext/standard/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 3b9a1a8db7..baf98e1565 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -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; + flags = block ? 0 : 1; if (ioctlsocket(socketd,FIONBIO,&flags)==SOCKET_ERROR){ php_error(E_WARNING,"%s",WSAGetLastError()); ret = FALSE; |