PHP 4.0 Bug #9190 Updated: Can't bind UNIX socket

From: Date: Thu, 22 Mar 2001 13:26:10 +0000
Subject: PHP 4.0 Bug #9190 Updated: Can't bind UNIX socket
Groups: php.dev 
Request: Send a blank email to php-dev+get-49736@lists.php.net to get a copy of this message
ID: 9190 Updated by: sniper Reported By: vvtk@stealthcomp.com Old-Status: Open Status: Closed Bug Type: Sockets related Assigned To: Comments: Fixed in CVS. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-02-09 06:26:22] vvtk@stealthcomp.com $address = "/tmp/socket.sock"; if (($sock = socket (AF_UNIX, SOCK_STREAM, 0)) < 0) { echo "socket() failed: reason: " . strerror ($sock) . "n"; exit; } if (($ret = bind ($sock, $address)) < 0) { echo "bind() failed: reason: $ret " . strerror ($ret) . "n"; exit; } =========== I get: bind() failed: reason: -22 Invalid argument --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9190&edit=2

« previous php.dev (#49736) next »