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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 04:01:28 2024 UTC