#25475 [NEW]: Direct IO access to raw file descriptor
| From: | mbostrom at syrah dot us | Date: | Wed, 10 Sep 2003 19:08:40 +0000 |
| Subject: | #25475 [NEW]: Direct IO access to raw file descriptor | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-47390@lists.php.net to get a copy of this message | ||
From: mbostrom at syrah dot us
Operating system: Unixes
PHP version: Irrelevant
PHP Bug Type: Feature/Change Request
Bug description: Direct IO access to raw file descriptor
Description:
------------
The Direct IO functions are nice.
However, it is sometimes necessary to access file descriptors by their
number. For instance, a parent process can set up file descriptors 3, 4
and 5 for communication with the a child process (in addition to file
descriptors 0, 1 and 2). It would be nice if there were a way in PHP to
get access to to file descriptor 3, so that PHP could interoperate with
software that uses "extra" file descriptors. (In particular, I am writing
a mail filter. The mail server sets up fd 3).
Getting access to the "extra" file descriptors is not possible at present,
because the only way to get a file descriptor is to call dio_open on a
file. What if the file descriptor already exists? There is currently no
way to access it.
Perhaps a function such as dio_rawfd (int fdnum) could be added? fdnum is
an integer - the number of the file descriptor you want. dio_rawfd
returns a file descriptor resource for file descriptor number fdnum.
--
Edit bug report at http://bugs.php.net/?id=25475&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25475&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25475&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25475&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25475&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25475&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25475&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25475&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25475&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25475&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25475&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25475&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25475&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25475&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25475&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25475&r=gnused