Bug #10830 Updated: Cannot bind() a socket to a specific port in FreeBSD

From: Date: Wed, 21 Nov 2001 12:37:56 +0000
Subject: Bug #10830 Updated: Cannot bind() a socket to a specific port in FreeBSD
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71204@lists.php.net to get a copy of this message
ID: 10830 Updated by: mfischer Reported By: drw@douglas.min.net Old Status: Open Status: Feedback Bug Type: Sockets related Operating System: FreeBSD 4.3-STABLE PHP Version: 4.0.5 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2001-05-12 13:19:32] drw@douglas.min.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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=10830&edit=1

« previous php.dev (#71204) next »