[PHP-DEV] PHP 4.0 Bug #3845: socket_set_blocking not work From: kufan <email protected>
Date: 03/16/00

From: kufan <email protected>
Operating system: NT4.0
PHP version: 4.0 Beta 4 Patch Level 1
PHP Bug Type: Misbehaving function
Bug description: socket_set_blocking not work

socket_set_blocking didn't work on Windows.
That's because in php_set_sock_blocking(),
a non-zero value of the third parameter in
ioctlsocket set socket nonblocking, and zero
value set socket blocking.

So,
    flags = block
should be replace as
    flags = block ? 0 : 1;
before the ioctlsocket.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>