ID: 21197 User updated by: bool at boolsite dot net Reported By: bool at boolsite dot net -Status: Bogus +Status: Open Bug Type: Sockets related -Operating System: Win2k pro +Operating System: Win2k pro and WinXP pro -PHP Version: 4.3.0 +PHP Version: 4.3.3 New Comment:
It's not the same bugs than http://bugs.php.net/bug.php?id=21760 . Here it's a Win32 PHP version bug only, since the PHP 4.3.0 version, and there is always the bug in the last version 4.3.3. socket_read() always return FALSE, and display this error : "erreur [0] avec socket_read : OpÚration rÚussie." (in english it should be "error [0] with socket_read : operation completed.") maybe it's because of the socket_select() before the socket_read() ? PS : it affects all my codes, but only with PHP 4.3.x Win32 version. On unix or with PHP 4.2.3 all works fine. Previous Comments: ------------------------------------------------------------------------ [2003-06-29 21:42:30] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. The active discussion regarding this bug appears to be here http://bugs.php.net/bug.php?id=21760 let's keep it all in one place. ------------------------------------------------------------------------ [2003-02-05 21:13:07] chip at cyan dot com See my comment on this bug report: http://bugs.php.net/bug.php?id=21760 I tested the same script on windows 2000, and it broke. ------------------------------------------------------------------------ [2003-01-09 13:13:25] [EMAIL PROTECTED] I've analyzed this bug. It's because of fcntl() that just returns -1 under windows when F_GETFL is given. Then the php_read function just also returns -1 and then socket_read sends the error because it returned -1. I've sent my comment to Wez too. ------------------------------------------------------------------------ [2002-12-30 23:08:50] eric at evilwalrus dot com I've experianced this bug on WindowsXP also. I've tried PHP 4.3.0 (stable) and 4.4.0-dev just to see if it was fixed, and it is not. I have also talked to someone with WindowsXP who experianced this problem in PHP 4.2.3. The function does work fine without a third parameter, but, this is a big inconvienice when I need the read to stop at \n or \r. The function just stops reading when the buffer is full if there is no third parameter. Hope this is helpful. ------------------------------------------------------------------------ [2002-12-26 20:39:22] [EMAIL PROTECTED] If you omit the third parameter to socket_read() it seems to work fine. However, adding PHP_NORMAL_READ causes error as described in the bug report. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21197 -- Edit this bug report at http://bugs.php.net/?id=21197&edit=1