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

From: Date: Sun, 07 Oct 2001 00:20:46 +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-67455@lists.php.net to get a copy of this message
ID: 13572 Updated by: sniper Reported By: trh@gmx.li Old Status: Open Status: Feedback Old Bug Type: Filesystem function related Bug Type: Sockets related Operating System: Windows 2k/Linux PHP Version: 4.0.6 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2001-10-06 04:04:24] trh@gmx.li socket's set to non-blocking, opened at port 9999 udp $start=time(); while((time()-$start)<2) { $res=fread($fp2, 100); echo "$res\n"; } no answer from udp socket... a similar c program works btw: in php4.0.7rc3 the problem isn't fixed ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13572&edit=1

« previous php.dev (#67455) next »