[PHP-DEV] Bug #5480 Updated: set_socket_blocking($fp, False) don't work !
ID: 5480 Updated by: sander Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] reclassify [2000-07-09 06:54:14] [EMAIL PROTECTED] $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: $messageBR\n); print(MESSAGE : $string\n); //} //fpassthru($fp); print(MESSAGE FINISHED : $string\n); fclose($fp); //print(Message Received : $loginReceivedBR); } Edit this bug report at http://bugs.php.net/?id=5480edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #5480 Updated: set_socket_blocking($fp, False) don't work !
ID: 5480 Updated by: mfischer Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] reclassify [2000-07-09 06:54:14] [EMAIL PROTECTED] $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: $messageBR\n); print(MESSAGE : $string\n); //} //fpassthru($fp); print(MESSAGE FINISHED : $string\n); fclose($fp); //print(Message Received : $loginReceivedBR); } Edit this bug report at http://bugs.php.net/?id=5480edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]