#22358 [NEW]: it is not possible to open UDP UNIX domain socket using fsockopen()
| From: | joe at ynet dot sk | Date: | Fri, 21 Feb 2003 18:14:58 +0000 |
| Subject: | #22358 [NEW]: it is not possible to open UDP UNIX domain socket using fsockopen() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-33859@lists.php.net to get a copy of this message | ||
From: joe at ynet dot sk
Operating system: Linux 2.4.20
PHP version: 4.3.1
PHP Bug Type: Sockets related
Bug description: it is not possible to open UDP UNIX domain socket using fsockopen()
I don't know whether this is really bug or "feature" - in later case it
*should* be mentioned in documentation, that unix domain sockets in
fsockopen() are *always* opened using TCP (SOCK_STREAM). I took a look
into sources:
in main/network.c, function _php_stream_sock_open_unix
socketd = socket(PF_UNIX, SOCK_STREAM, 0);
no chance for SOCK_DGRAM ... so something like "udp://filename" won't work
with fsockopen().
--
Edit bug report at http://bugs.php.net/?id=22358&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22358&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22358&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22358&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22358&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22358&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22358&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22358&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22358&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22358&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22358&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22358&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22358&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22358&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22358&r=gnused