|  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 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:
Solve the problem:
1 + 11 = ?
Subscribe to this entry?

 [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

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.


Add a Patch

Pull Requests

Add a Pull Request


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

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.

 [2001-12-13 06:25 UTC]
No feedback. Closing.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jul 02 18:03:35 2022 UTC