Bug #5480 Updated: set_socket_blocking($fp, False) don't work !

From: Date: Wed, 21 Nov 2001 17:11:21 +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-71262@lists.php.net to get a copy of this message
ID: 5480 Updated by: mfischer Reported By: gs@tradeware.be Old Status: Open Status: Feedback Bug Type: Sockets related Operating System: Win32 PHP Version: 4.0.0 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.dev (#71262) next »