ID: 21197 Updated by: [EMAIL PROTECTED] Reported By: bool at boolsite dot net -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: win32 only PHP Version: 4.3.3 New Comment:
Please provide a complete but short example script that can be used to reproduce this bug. Previous Comments: ------------------------------------------------------------------------ [2003-08-25 18:19:27] bool at boolsite dot net 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2002-12-26 09:32:25] bool at boolsite dot net Hello I have a source which works with PHP 4.1.x to PHP 4.2.x, it's work perfectly. But with PHP 4.3RC4 (windows version, client mode) I have this warning : Warning: socket_read() unable to read from socket [0]: OpÚration rÚussie. in E:\PHP\KioobFTP\v0.7.1\KioobFTP_SocketMode.php on line 262 Then, the result of the function is FALSE. The socket is in blocking mode. The code is : $tmp=socket_read($this->stream,4096,PHP_NORMAL_READ); Do you need others info ? Thanks. Bool ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21197&edit=1