Bug #5480 Updated: set_socket_blocking($fp, False) don't work !
| From: | sander@php.net | Date: | Sat, 15 Dec 2001 13:28:59 +0000 |
| Subject: | Bug #5480 Updated: set_socket_blocking($fp, False) don't work ! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73911@lists.php.net to get a copy of this message | ||
ID: 5480
Updated by: sander
Reported By: gs@tradeware.be
Old Status: Feedback
Status: Closed
Bug Type: Sockets related
Operating System: Win32
PHP Version: 4.0.0
New Comment:
No feedback. Closing.
Previous Comments:
------------------------------------------------------------------------
[2001-11-21 12:11:21] mfischer@php.net
Uh, 4.0.0 .. quite old ;)
Can you try with latest RC and see if it works
http://www.php.net/~zeev/php-4.1.0RC3.tar.gz
Feedback.
------------------------------------------------------------------------
[2000-08-04 12:13:58] stas@php.net
reclassify
------------------------------------------------------------------------
[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 : $string\n");
//}
//fpassthru($fp);
print("MESSAGE FINISHED : $string\n");
fclose($fp);
//print("Message Received : $loginReceived<BR>");
}
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=5480&edit=1