PHP 4.0 Bug #5480 Updated: set_socket_blocking($fp, False) don't work !
| From: | sniper@php.net | Date: | Tue, 30 Jan 2001 09:58:24 +0000 |
| Subject: | PHP 4.0 Bug #5480 Updated: set_socket_blocking($fp, False) don't work ! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45361@lists.php.net to get a copy of this message | ||
ID: 5480
Updated by: sniper
Reported By: gs@tradeware.be
Status: Open
Old-Bug Type: Misbehaving function
Bug Type: Sockets related
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-07-09 06:54:14] gs@tradeware.be
$fp = fsockopen("localhost", "8000", &$errno, &$errstring, 3);
if(!$fp) {
echo "$errstr ($errno)<br>n";
}
else {
set_socket_blocking($fp, False);
fputs($fp, $message);
//while (!feof($fp)) {
//$string .= fread($fp, 20);
$string .= fgets($fp, 60);
//print("MESSAGE FGETS: $message<BR>n");
print("MESSAGE : $stringn");
//}
//fpassthru($fp);
print("MESSAGE FINISHED : $stringn");
fclose($fp);
//print("Message Received : $loginReceived<BR>");
}
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5480