php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1387
Submitted: 1999-05-07 10:56 UTC Modified: 2001-02-10 13:15 UTC
From: jsf at swip dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.6 OS: Solaris 2.6
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: jsf at swip dot net
New email:
PHP Version: OS:

 

 [1999-05-07 10:56 UTC] jsf at swip dot net
I would like to have a change in the way fsockopen works. As
of now it defaults to TCP as a protocol but in some cases you
really would like to specify what protocol to use. I should work
something like this:

fsockopen(string hostname, int port, string [protocol], int [errno],
               string [errstr])

Where the option protocol (if not omitted) would default to TCP.

I just thought it could be a neat feature if you could specify the
protocol. Protocols I can think of are UDP and ICMP for instance.
 
I'm know there are a bunch of networked applications out there 
which use UDP only and it would be great if PHP and fsockopen 
would support them.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 13:15 UTC] jimw@php.net
a socket() function was added in 4.0.2.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 09 08:05:52 2022 UTC