mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
fixed socket_set blocking in windows
(bug 3845)
This commit is contained in:
parent
8dd1fdb1a0
commit
89153d9c05
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue