ID: 43627
Updated by: [EMAIL PROTECTED]
Reported By: user at example dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Debian Etch and RHEL 5
PHP Version: 5.2.5
New Comment:
man open
man 7 fifo
"Normally, opening the FIFO blocks until the other end is opened also."
Previous Comments:
------------------------------------------------------------------------
[2007-12-18 16:59:10] user at example dot com
Description:
------------
fopen() blocks waiting for read on named pipes (FIFOs) opened for
reading.
Reproduce code:
---------------
At Unix prompt:
% mkfifo myfifo
PHP:
$fp = fopen('myfifo', 'r');
Expected result:
----------------
PHP execution should continue until attempting to read from the FIFO,
e.g.:
fread($fp, 1);
Actual result:
--------------
PHP execution suspends (blocks) on the fopen() command until another
process writes data to the FIFO.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43627&edit=1