|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8254 fsockopen() does not works in AF_UNIX mode
Submitted: 2000-12-14 07:15 UTC Modified: 2000-12-19 08:03 UTC
From: jl_villar at hotmail dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.3pl1 OS: Linux 2.2.16 (RedHat)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 + 28 = ?
Subscribe to this entry?

 [2000-12-14 07:15 UTC] jl_villar at hotmail dot com
fsockopen() does not works in AF_UNIX mode. This works fine in Digital Unix 4.0 but not in Linux 2.2.16
I had try use relative and absolute directions for the path to the socket but does not work.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-19 06:18 UTC]
Could you please bring example of the script that doesn't
work for you?
 [2000-12-19 07:19 UTC] jl_villar at hotmail dot com
my script in php is simple. Its a conection with a relative direction with a socket AF_UNIX like this:
 $fp = fsockopen($enlacePuente, 0, &$errno, &$errstr, 30);
   genera_error("No activado puente a PGE: $errstr ($errno)en $enlacePuente");
I had try use absolute directions too (like "/etc/httpd/htdocs/myweb/pge/fichero" and others)and it doesn't work.
The program server that creates the point 'fichero' it?s had been programmed in C (its basically a server in AF_UNIX mode). This program don?t have errors and works fine in Linux with other client?s, in fact all, php included, works fine in a Digital Alfa 4.0E (in all manners that I had probe in Linux 2.2.16)
Concretely the error that reports php its '(111) conection refused'. The same error that it?ll report if php didn't find the point of the AF_UNIX socket.

 [2000-12-19 08:03 UTC]
Works for me with latest version on Linux. Probably your
path is wrong or permissions insufficient to connect to the
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 23:01:33 2024 UTC