ID:               16648
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: Windows
 PHP Version:      4.2.0
 Assigned To:      wez
 New Comment:

My source:
$fp = fsockopen("udp://192.168.0.196",27015, &$errno, &$errstr, 10);
    echo"$fp";
if (!$fp) {
    echo "ERROR: $errno - $errstr<br>\n";
    }
else{
    $i=fwrite($fp,"˙˙˙˙details\x00"); 
    echo"$i";    
    $i2 = fread($fp,5);
    echo"$i2";    
    .......
    fclose($fp);
    }

If 192.168.0.196 doesn't work, $fp=Resource id #1 ; $i=12, but there
isn't connection.
This values don't show the connection problem.
After the calling of the "fread" -> Internet Explorer doesn't load the
Site.


Previous Comments:
------------------------------------------------------------------------

[2002-04-17 03:50:09] [EMAIL PROTECTED]

Reproduced under linux.  Since UDP is a connectionless protocol, I'm
not sure what can be done about this:
When you fsockopen a UDP socket, all you are doing is
creating a socket.  No real network stuff is done until
you fread or fwrite to the socket, at which point you will
see any error messages that arise.
Changing to a documentation problem.

------------------------------------------------------------------------

[2002-04-16 22:42:42] [EMAIL PROTECTED]

4.1.2 and 4.2.0 RC4 version:

The fsocketopen doesn't return error message when UDP port is not open.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16648&edit=1

Reply via email to