Req #60896 [Com]: Provide a wrapper for pipe(2)
Edit report at https://bugs.php.net/bug.php?id=60896&edit=1
ID: 60896
Comment by: nazi dot farhadi3171 at gmail dot com
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:
Thanks a lot for the reply (https://www.my-ascension.net/)github.com
Previous Comments:
------------------------------------------------------------------------
[2012-10-02 08:21:53] olav dot morken at uninett dot no
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.
------------------------------------------------------------------------
[2012-01-27 16:33:39] cataphract@php.net
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
Thread (4 messages)