php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9190 Can't bind UNIX socket
Submitted: 2001-02-09 06:26 UTC Modified: 2001-03-22 08:26 UTC
From: vvtk at stealthcomp dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.4pl1 OS: RedHat 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vvtk at stealthcomp dot com
New email:
PHP Version: OS:

 

 [2001-02-09 06:26 UTC] vvtk at stealthcomp dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-22 08:26 UTC] sniper@php.net
Fixed in CVS.

--Jani

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 06 21:01:04 2020 UTC