|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5480 set_socket_blocking($fp, False) don't work !
Submitted: 2000-07-09 06:54 UTC Modified: 2001-12-15 08:28 UTC
From: gs at tradeware dot be Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.0 OS: Win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gs at tradeware dot be
New email:
PHP Version: OS:


 [2000-07-09 06:54 UTC] gs at tradeware dot 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");
		print("MESSAGE FINISHED : $string\n");

		//print("Message Received : $loginReceived<BR>");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-04 12:13 UTC]
 [2001-11-21 12:11 UTC]
Uh, 4.0.0 .. quite old ;)

Can you try with latest RC and see if it works


 [2001-12-15 08:28 UTC]
No feedback. Closing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 18:01:42 2024 UTC