PHP 4.0 Bug #9190: Can't bind UNIX socket
| From: | vvtk at stealthcomp dot com | Date: | Fri, 09 Feb 2001 11:26:22 +0000 |
| Subject: | PHP 4.0 Bug #9190: Can't bind UNIX socket | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46076@lists.php.net to get a copy of this message | ||
From: vvtk@stealthcomp.com
Operating system: RedHat 6.1
PHP version: 4.0.4pl1
PHP Bug Type: Sockets related
Bug description: Can't bind UNIX socket
$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
--
Edit Bug report at: http://bugs.php.net/?id=9190&edit=1