|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60896 Provide a wrapper for pipe(2)
Submitted: 2012-01-26 23:28 UTC Modified: 2012-01-27 16:33 UTC
Avg. Score:4.4 ± 0.5
Reproduced:12 of 12 (100.0%)
Same Version:7 (58.3%)
Same OS:10 (83.3%)
From: phihag at phihag dot de Assigned:
Status: Open Package: POSIX related
PHP Version: Irrelevant OS: Unix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
41 - 19 = ?
Subscribe to this entry?

 [2012-01-26 23:28 UTC] phihag at phihag dot de
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 for the POSIX 

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


php5-pipe2 (last revision 2014-07-09 10:34 UTC by bandie9100 at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-27 16:33 UTC]
Note the most common use case is covered by proc_open
 [2012-10-02 08:21 UTC] 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.
 [2022-11-29 05:42 UTC] nazi dot farhadi3171 at gmail dot com
Thanks a lot for the reply (
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 06:01:29 2024 UTC