note 105180 added to function.fopen

From: Date: Mon, 01 Aug 2011 16:39:10 +0000
Subject: note 105180 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-182080@lists.php.net to get a copy of this message
fopen() will block if the file to be opened is a fifo. This is true whether it's opened in "r" or "w" mode. (See man 7 fifo: this is the correct, default behaviour; although Linux supports non-blocking fopen() of a fifo, PHP doesn't). The consequence of this is that you can't discover whether an initial fifo read/write would block because to do that you need stream_select(), which in turn requires that fopen() has happened! ---- Server IP: 69.147.83.197 Probable Submitter: 87.194.171.29 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- https://master.php.net/note/edit/105180 Del: integrated -- https://master.php.net/note/delete/105180/integrated Del: useless -- https://master.php.net/note/delete/105180/useless Del: bad code -- https://master.php.net/note/delete/105180/bad+code Del: spam -- https://master.php.net/note/delete/105180/spam Del: non-english -- https://master.php.net/note/delete/105180/non-english Del: in docs -- https://master.php.net/note/delete/105180/in+docs Del: other reasons-- https://master.php.net/note/delete/105180 Reject -- https://master.php.net/note/reject/105180 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182080) next »