#21197 [Opn->Ver]: socket_read() seems to doesn't work

From: Date: Fri, 27 Dec 2002 02:39:23 +0000
Subject: #21197 [Opn->Ver]: socket_read() seems to doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28458@lists.php.net to get a copy of this message
 ID:               21197
 Updated by:       edink@php.net
 Reported By:      bool@boolsite.net
-Status:           Open
+Status:           Verified
 Bug Type:         Sockets related
 Operating System: Win2k pro
 PHP Version:      4.3.0RC4
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2002-12-26 09:32:25] bool@boolsite.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



Thread (46 messages)

« previous php.bugs (#28458) next »