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

 ID:                 60896
 Comment by:         olav dot morken at uninett dot no
 Reported by:        phihag at phihag dot de
 Summary:            Provide a wrapper for pipe(2)
 Status:             Open
 Type:               Feature/Change Request
 Package:            POSIX related
 Operating System:   Unix
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Support for unnamed pipes are useful with pcntl_fork(). That would allow for 
easy communication between parent and child processes.

A workaround is to use socket_create_pair(). However, sockets are not as 
lightweight as pipes.


Previous Comments:
------------------------------------------------------------------------
[2012-01-27 16:33:39] [email protected]

Note the most common use case is covered by proc_open

------------------------------------------------------------------------
[2012-01-26 23:28:00] phihag at phihag dot de

Description:
------------
Currently, there does not seem to be a way to create an anonymous pipe (which 
is 
particularily) via the pipe(2) system call. There should be a wrapper for pipe 
and optionally pipe2 in php. See 
http://pubs.opengroup.org/onlinepubs/009695399/functions/pipe.html for the 
POSIX 
spec.

Test script:
---------------
<?
list($readfd, $writefd) = posix_pipe();



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60896&edit=1

Reply via email to