#26271 [Opn->Bgs]: Cannot read from pipe created with posix_mkfifo()
| From: | iliaa@php.net | Date: | Mon, 17 Nov 2003 21:35:25 +0000 |
| Subject: | #26271 [Opn->Bgs]: Cannot read from pipe created with posix_mkfifo() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50509@lists.php.net to get a copy of this message | ||
ID: 26271
Updated by: iliaa@php.net
Reported By: tipton at shsu dot edu
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Fedora Core 1
PHP Version: 4.3.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You should be using popen() and/or proc_open() to work with pipes.
Previous Comments:
------------------------------------------------------------------------
[2003-11-16 02:11:00] tipton at shsu dot edu
Description:
------------
wrote a script to test with following the order: create pipe, open pipe
for writing, write to pipe, close pipe. with another script to open
the pipe, read from the pipe, close the pipe, unlink the pipe.
the writer script hangs on the fopen() unless it's mode is 'w+', the
reader script hangs on the fopen() regardless of mode.
i accept that it may be something i am doing wrong, but i can find no
documentation anywhere dealing with pipes in PHP.
Reproduce code:
---------------
writer - http://piplipton.homelinux.org/socket/test.txt
reader - http://piplipton.homelinux.org/socket/test2.txt
substitute .php for .txt in the above links to run the actual scripts.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26271&edit=1