php.net |  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
 [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");
		//}
		
		//fpassthru($fp);
		print("MESSAGE FINISHED : $string\n");

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-04 12:13 UTC] stas@php.net
reclassify
 [2001-11-21 12:11 UTC] 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.

 [2001-12-15 08:28 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 14:01:23 2020 UTC