php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10830 Cannot bind() a socket to a specific port in FreeBSD
Submitted: 2001-05-12 13:19 UTC Modified: 2001-12-13 06:25 UTC
From: drw at douglas dot min dot net Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.5 OS: FreeBSD 4.3-STABLE
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: drw at douglas dot min dot net
New email:
PHP Version: OS:

 

 [2001-05-12 13:19 UTC] drw at douglas dot min dot net
Operating in CGI mode, trying the Simple TCP/IP Server script at http://www.php.net/manual/en/html/ref.sockets.html

bind($sock,$address,$port) fails with "Invalid argument".

bind($sock,$address) gives a parameter count error, but manages to bind the socket to the next available port anyway.

Reproducable in 12-May snapshot.  This may affect other BSD unices also, however it is verified as working properly under Linux.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-21 07:37 UTC] mfischer@php.net
The socket interface has been rewritten in PHP. Can you try latest RC please

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz


Unfortunately, there is no documentation yet for the new extension. All socket related functions start with 'socket_*()', so this would be socket_create, socket_bind, etc.

Feedback.
 [2001-12-13 06:25 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC