php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16648 fsocketopen + UDP ERROR
Submitted: 2002-04-16 22:42 UTC Modified: 2002-08-11 07:14 UTC
Votes:6
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: world-soft at freemail dot hu Assigned: wez (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.2.0 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: world-soft at freemail dot hu
New email:
PHP Version: OS:

 

 [2002-04-16 22:42 UTC] world-soft at freemail dot hu
4.1.2 and 4.2.0 RC4 version:

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-17 03:50 UTC] wez@php.net
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-21 14:53 UTC] world-soft at freemail dot hu
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.
 [2002-08-11 07:14 UTC] wez@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 09:01:30 2024 UTC