ID: 30594 Updated by: [EMAIL PROTECTED] Reported By: ville at walveranta dot org -Status: Open +Status: Bogus Bug Type: Sockets related Operating System: FreeBSD 4.10-RELEASE-p3 PHP Version: 5.0.2 New Comment:
http://docs.php.net/en/transports.html Use "unix://" as a prefix, as has always been documented for fsockopen. Previous Comments: ------------------------------------------------------------------------ [2004-10-28 07:20:21] ville at walveranta dot org Description: ------------ UNIX domain socket connection to a daemon socket that is certified to be valid, and to which connection with PHP 4.3.9 can be established without a problem, fails. The daemon I was testing this with was Bruce Guenter's vmailmgr (http://vmailmgr.org/) but the same problem seemes to occur with any valid domain socket. PHP 5.0.2 with Apache 1.3.32 produces the error while PHP 4.3.9 with Apache 1.3.32 works ok (PHP code tested on the same system, with otherwise [besides the PHP version] identical configuration). Reproduce code: --------------- <?php $sockfile = '/usr/tmp/.vmailmgrd'; $vmailsock = fsockopen ($sockfile, 0, $errno, $errstr, 20); if (!$vmailsock) die("Failed to open unix socket file at '$sockfile'<br>\n Error: $errno - $errstr"); ?> Expected result: ---------------- no output (i.e. $vmailsock is a valid resource) Actual result: -------------- Warning: fsockopen() [function.fsockopen]: unable to connect to /usr/tmp/.vmailmgrd:0 (Failed to parse address "/usr/tmp/.vmailmgrd") in /usr/web/site31821/htdocs/testsock.php on line 4 Failed to open unix socket file at '/usr/tmp/.vmailmgrd' Error: 0 - Failed to parse address "/usr/tmp/.vmailmgrd" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30594&edit=1
