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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 21:01:29 2025 UTC