php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41084 fsockopen: udp port not open, response always true.
Submitted: 2007-04-14 07:46 UTC Modified: 2007-04-14 09:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gabriel at casaavenida dot com dot br Assigned:
Status: Not a bug Package: Sockets related
PHP Version: 5.2.1 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gabriel at casaavenida dot com dot br
New email:
PHP Version: OS:

 

 [2007-04-14 07:46 UTC] gabriel at casaavenida dot com dot br
Description:
------------
fsockopen: udp port not open, response always true.

Reproduce code:
---------------
function service_enable($serverip,$port,$protocol)  {
    error_reporting(1);
	$fp = fsockopen ("$protocol://$serverip", $port, $errno, $errstr);

    if(!$fp) {
          $status = 'NOT OPEN';

        } else {
          $status = 'OPEN';
        }
       return $status;
}

echo service_enable('127.0.0.1','80',udp);

Expected result:
----------------
NOT OPEN

Actual result:
--------------
OPEN

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-14 07:54 UTC] gabriel at casaavenida dot com dot br
I am Sorry my bad english. 

I am test in Linux, php 4.3.3, 
Same Error. 
In other station under Windows in PHP Version 5.0.3
Same Error

Always Responde is open. 
The port not open in the machine.
 [2007-04-14 09:54 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 15:01:34 2025 UTC