#43627 [Opn->Bgs]: fopen blocks on fifo

From: Date: Tue, 29 Jan 2008 00:15:50 +0000
Subject: #43627 [Opn->Bgs]: fopen blocks on fifo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121671@lists.php.net to get a copy of this message
ID: 43627 Updated by: tony2001@php.net 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

« previous php.bugs (#121671) next »