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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 1 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC