PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_Socket » Bug #2961

connect() in 1.0.3 doesn't work w/ filesystem sockets

Details

Submitted2004-12-13 18:55 UTC
Fromliamr at umich dot edu
Assignedchagenbu
StatusClosed
PackageNet_Socket
PHP Version4.3.9
OSLinux
Roadmaps(Not assigned)

Comments

[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 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:54 UTC] liamr at umich dot edu

That diff seems to work just fine. Thanks very much!