Edit report at http://bugs.php.net/bug.php?id=25475&edit=1

 ID:                 25475
 Updated by:         j...@php.net
 Reported by:        mbostrom at syrah dot us
 Summary:            Direct IO access to raw file descriptor
-Status:             Open
+Status:             Bogus
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   Unixes
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Report requests/bugs on this PECL extension here:

http://pecl.php.net/bugs/search.php?cmd=display&status=Open&package_name[]=dio


Previous Comments:
------------------------------------------------------------------------
[2008-11-24 13:18:18] rodrigo at fabricadeideias dot com

How can this be done with fgets and fputs?

------------------------------------------------------------------------
[2006-02-15 20:48:40] php at kanarpiet dot com

It would indeed be very nice to be able to use the extra file 

descriptors opened by the parents proc_open() call.



However, you should also be able to use the normal fgets() and 

fputs() functions, not just the Direct IO ones.

------------------------------------------------------------------------
[2003-09-10 15:08:40] mbostrom at syrah dot us

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 this bug report at http://bugs.php.net/bug.php?id=25475&edit=1

Reply via email to