PHP 4.0 Bug #3845: socket_set_blocking not work

From: Date: Thu, 16 Mar 2000 11:26:25 +0000
Subject: PHP 4.0 Bug #3845: socket_set_blocking not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-16879@lists.php.net to get a copy of this message
From: kufan@mail.formosoft.com 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.

« previous php.dev (#16879) next »