From:             [EMAIL PROTECTED]
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



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to