Bug #13572 Updated: fread doesn't read from udp sockets

From: Date: Wed, 21 Nov 2001 18:19:37 +0000
Subject: Bug #13572 Updated: fread doesn't read from udp sockets
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71281@lists.php.net to get a copy of this message
ID: 13572 Updated by: sander Reported By: trh@gmx.li Old Status: Feedback Status: Closed Bug Type: Sockets related Operating System: Windows 2k/Linux PHP Version: 4.0.6 New Comment: No feedback. Closing. Previous Comments: ------------------------------------------------------------------------ [2001-10-31 19:34:19] sniper@php.net You didn't try the example script from the manual. Please try it. And what 'similar c program' are you referring to? Are the sources somewhere available to see? --Jani ------------------------------------------------------------------------ [2001-10-07 09:26:10] trh@gmx.li i tried now: $fp=fsockopen("udp://10.0.0.2", $mudport, $errno,$errstr); socket_set_timeout($fp, 3); if($fp) { echo "con: ok<br>"; fwrite($fp, "$query_string"); echo fread($fp, 100); fclose($fp); } result is, that php still does not receive an answer from the request (php4.0.7rc3 compiled as cgi for linux) tcpdump proves, that there was an answer: 15:22:30.654252 10.0.0.1.1062 > 10.0.0.2.4246: udp 39 15:22:30.661213 10.0.0.2.4246 > 10.0.0.1.4246: udp 126 ------------------------------------------------------------------------ [2001-10-06 20:20:45] sniper@php.net Does the example UDP script on the manual page for fsockopen() work for you? It does for me so I doubt this is a bug.. --Jani ------------------------------------------------------------------------ [2001-10-06 04:31:49] trh@gmx.li i used fsockopen("udp://$host", $port ....) socket_set_blocking($fp, FALSE) ------------------------------------------------------------------------ [2001-10-06 04:26:18] mfischer@php.net In 4.0.7 a new socket has been introduced. Did you used it? - markus ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=13572 Edit this bug report at http://bugs.php.net/?id=13572&edit=1

« previous php.dev (#71281) next »