Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #2961 connect() in 1.0.3 doesn't work w/ filesystem sockets
Submitted: 2004-12-13 18:55 UTC
From: liamr at umich dot edu Assigned: chagenbu
Status: Closed Package: Net_Socket
PHP Version: 4.3.9 OS: Linux
Roadmaps: (Not assigned)    

 [2004-12-13 18:55 UTC] liamr at umich dot edu
Description: ------------ Net_Socket 1.0.2 could handle unix (file system) sockets in addition to TCP/IP sockets. The gethostbyname() logic around ln ~102 prevents you from passing it a file name instead of a hostname.


 [2004-12-13 20:49 UTC] chagenbu
Okay. Can you give me a few examples of unix sockets you're passing in so I can differentiate them from hostnames?
 [2004-12-13 21:07 UTC] liamr at umich dot edu
Stuff like... /var/tmp/imsp.0eb8fd40beeda8b1c1508247d6a92f62.sock /var/tmp/sieve.0eb8fd40beeda8b1c1508247d6a92f62.sock Maybe if you only supported fully qualified paths and checked for the presence of slashes?
 [2004-12-13 21:46 UTC] chagenbu
 [2004-12-13 21:54 UTC] liamr at umich dot edu
That diff seems to work just fine. Thanks very much!
 [2004-12-13 21:58 UTC] chagenbu
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at