|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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";

if (($ret = bind ($sock, $address)) < 0) {
    echo "bind() failed: reason: $ret " . strerror ($ret) . "\n";

I get: bind() failed: reason: -22 Invalid argument


Add a Patch

Pull Requests

Add a Pull Request


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


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 18:01:30 2024 UTC