|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 20:01:32 2024 UTC